Writing to XDG_DATA_HOME
during post_install
step
#4480
Unanswered
kate-goldenring
asked this question in
Tap maintenance and brew development
Replies: 1 comment
-
I know there is some sandboxing on macOS and I think you're limited to the Homebrew prefix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
I am creating a new formula for the Spin CLI (https://github.com/fermyon/spin). As a part of the
post_install
section, I want to add "templates" (a series of directories with application scaffolds) to$XDG_DATA_HOME/spin
or more specifically~/Library/Application\ Support/spin
. However, i get anOperation not permitted
error:Caused by: 0: Failed to install template from /private/tmp/.tmpbnKQiW/templates/redis-rust 1: Failed to create directory /Users/kagold/Library/Application Support/spin/templates/redis-rust_2eaa9f1af54cf8452806b2a88fbd209fe0ee1d93921db19e3664aa4bf7e3b83d for redis-rust 2: Operation not permitted (os error 1)
Here is my
post_install
definition:I am guessing I have a knowledge gap on what is permitted to be done during a brew installation and to which directories. Is it possible to create artifacts in
XDG_HOME_DIR
during an installation?Thank you!
Beta Was this translation helpful? Give feedback.
All reactions