-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add brew install --local
flag
#16325
Comments
I'd like to discourage I've been thinking about the dependency question a bit since, including common scenarios where users would run with |
Agreed this is a desirable feature, thanks for opening @0xdevalias. @Bo98 I feel like |
Maybe
And then some other flag used with it ( I also wouldn't be opposed to this only happening if they were changed as well, as 99.9% of the time I'm not going to have local differences unless I'm specifically working on them. As for how to detect that easily/cleanly/with minimal code.. shrugs |
Agreed 👍🏻 |
After reflecting on this overnight, making it behave like So yeah I agree with what was said here. |
If I like I like Perhaps something could be added to Similar to how the docs for |
I didn't mean a literal alias. I was talking more in terms of how things like But it will still behave similarly yes. For formulae, |
That's the part that I think should be explicitly mentioned in the It's also somewhat confusing sometimes to know what flags are meant only for formula, which are for casks, and which apply to all. It would be nice if the help docs reflected that (though that's OOS of this issue) (Edit: see #16334) |
Opening this as an issue as it sounds like a good idea, and as best I could tell from a quick search, I don't think it has been done yet/discussed further.
My personal interest in it is probably more focused on casks than formulae, so
--build-from-source
doesn't seem relevant to that use case.Proposal
Workaround / Alternatives
I'm not sure if this is the canonical way, but as a workaround, currently when creating a new formula I just use a direct path to the file; eg.
brew install --cask $(brew --repository homebrew/cask)/Casks/f/foo.rb
This works ok, but is a little annoying/verbose in having to use the full path, or switch to the Casks directory first. It also seems to not play nice with the autocompletions, so I can't just tab my way to completing the filename/path.
If the
--local
isn't a good option, then perhaps drawing attention toHOMEBREW_NO_INSTALL_FROM_API=1
(if that's the canonical way) in the text forbrew install -h
would be useful.It was added to the pull request template for
homebrew-core
in:HOMEBREW_NO_INSTALL_FROM_API=1
note when building from source homebrew-core#138060And there are already other env vars described in the
brew install -h
text:brew/Library/Homebrew/cmd/install.rb
Lines 19 to 31 in de22479
The text was updated successfully, but these errors were encountered: