Repository navigation
[Brew] Document Homebrew options in brew.env - #33136
Conversation
The extension runs brew without the shell's environment, so a HOMEBREW_CASK_OPTS set in ~/.zshrc never reaches it and casks install to /Applications. brew reads ~/.homebrew/brew.env however it starts, so the README points there. Closes raycast#25112
|
Thank you for your contribution! 🎉 🔔 @nhojb @Aayush9029 @mathieudutour @urwrstkn8mare @ashokbaruaakas @MillerApps @pernielsentikaer @jfkisafk @vpukhanov @j3lte @alexander-cato @ViGeng @ridemountainpig @chrismessina @clins1994 @alexibuild you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="brew/brew-env-docs"
FORK_URL="https://github.com/dibas-np/extensions.git"
EXTENSION_NAME="brew"
REPO_NAME="extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 15 business days. |
[Low impact] No blocking issues were found. SummaryDocuments how users can set Homebrew options in
Reviews (2) · Last reviewed commit: "Update CHANGELOG.md" · Reviewed by Greptile |
|
Published to the Raycast Store: |
|
🎉 🎉 🎉 We've rewarded your Raycast account with some credits. You will soon be able to exchange them for some swag. |
|
@nhojb, before I open the Adopt Apps follow-up I mentioned, a design question. Adopt Apps takes its install folder from
I'd go with 1, since it keeps brew as the one source of truth. Which do you prefer? |
Seems reasonable and avoids manually parsing Thanks for tackling this! |
Description
Closes #25112. Docs only.
The extension runs
brewwithout your shell's environment, so aHOMEBREW_CASK_OPTSset in~/.zshrcnever reaches it. Casks then install to/Applications, and without admin rights the install waits on a password dialog.As agreed in the issue, the README now points to
~/.homebrew/brew.env, whichbrewreads however it starts, instead of adding a preference.Adopt Apps still reads
HOMEBREW_CASK_OPTSonly from Raycast's environment, so it doesn't see abrew.envsetting. I can fix that in a separate PR.Testing
brew.envline,brewsets the cask install folder to~/Applications.Checklist
npm run buildand tested this distribution build in Raycast (docs only)assetsfolder are used by the extension itselfREADMEare located outside the metadata folder if they were not generated with our metadata tool