This repository has been archived by the owner on Jan 16, 2025. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 11.3k
brew install --HEAD should not install --HEAD deps #7724
Labels
Comments
Agreed, someone pointed this out recently but I forgot about it. |
I suppose we could remove |
Good thinking, though we shouldn't clear eg. --verbose or --debug. |
Took a stab at a fix in Sharpie/homebrew@ac00541 . Let me know if it looks promising. |
Sharpie/homebrew@ac00541 has been incorporated in pull request #7784. |
Flags are now filtered by code in https://github.com/mxcl/homebrew/blob/7148211304/Library/Homebrew/formula_installer.rb#L257 Feel free to adjust the list of filtered flags as needed. |
wrigleyster
pushed a commit
to wrigleyster/homebrew
that referenced
this issue
Nov 17, 2011
`ARVG` is now filtered before the formula installer forks a new process. This allows a chance to do things like strip out `--HEAD` flags for formulae that weren't explicitly passed as arguments but came in as dependencies. Fixes Homebrew#7724.
Closed
etehtsea
pushed a commit
to etehtsea/homebrew
that referenced
this issue
Dec 24, 2011
`ARVG` is now filtered before the formula installer forks a new process. This allows a chance to do things like strip out `--HEAD` flags for formulae that weren't explicitly passed as arguments but came in as dependencies. Fixes Homebrew#7724.
etehtsea
pushed a commit
to etehtsea/homebrew
that referenced
this issue
Dec 24, 2011
Previously, stripping arguments like `--HEAD` for dependencies failed because that flag affects the installation prefix encoded into formula objects. The previous implementation of `ARGV` filtering tried to contain all changes to a single method call before the `FormulaInstaller` forks. This update spreads things out a bit: - The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies` which strips flags like `--HEAD`, yields to a block, then restores the original contents of ARGV. - The `explicitly_requested?` test, which returns true or false depending on if a formula object is a member of `ARGV.formulae`, is now a method of `Formula` objects. - `FormulaInstaller` objects now execute the installation of dependencies inside an `ARGV.filter_for_dependencies` block if the dependency was `explicitly_requested?`. Fixes Homebrew#8668. Closes Homebrew#7724.
etehtsea
pushed a commit
to etehtsea/homebrew
that referenced
this issue
Dec 27, 2011
`ARVG` is now filtered before the formula installer forks a new process. This allows a chance to do things like strip out `--HEAD` flags for formulae that weren't explicitly passed as arguments but came in as dependencies. Fixes Homebrew#7724.
etehtsea
pushed a commit
to etehtsea/homebrew
that referenced
this issue
Dec 27, 2011
Previously, stripping arguments like `--HEAD` for dependencies failed because that flag affects the installation prefix encoded into formula objects. The previous implementation of `ARGV` filtering tried to contain all changes to a single method call before the `FormulaInstaller` forks. This update spreads things out a bit: - The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies` which strips flags like `--HEAD`, yields to a block, then restores the original contents of ARGV. - The `explicitly_requested?` test, which returns true or false depending on if a formula object is a member of `ARGV.formulae`, is now a method of `Formula` objects. - `FormulaInstaller` objects now execute the installation of dependencies inside an `ARGV.filter_for_dependencies` block if the dependency was `explicitly_requested?`. Fixes Homebrew#8668. Closes Homebrew#7724.
snakeyroc3
pushed a commit
to snakeyroc3/homebrew
that referenced
this issue
Dec 17, 2012
`ARVG` is now filtered before the formula installer forks a new process. This allows a chance to do things like strip out `--HEAD` flags for formulae that weren't explicitly passed as arguments but came in as dependencies. Fixes Homebrew#7724.
snakeyroc3
pushed a commit
to snakeyroc3/homebrew
that referenced
this issue
Dec 17, 2012
Previously, stripping arguments like `--HEAD` for dependencies failed because that flag affects the installation prefix encoded into formula objects. The previous implementation of `ARGV` filtering tried to contain all changes to a single method call before the `FormulaInstaller` forks. This update spreads things out a bit: - The Homebrew `ARGV` extension adds a new method, `filter_for_dependencies` which strips flags like `--HEAD`, yields to a block, then restores the original contents of ARGV. - The `explicitly_requested?` test, which returns true or false depending on if a formula object is a member of `ARGV.formulae`, is now a method of `Formula` objects. - `FormulaInstaller` objects now execute the installation of dependencies inside an `ARGV.filter_for_dependencies` block if the dependency was `explicitly_requested?`. Fixes Homebrew#8668. Closes Homebrew#7724.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
If I have libevent installed
brew install io
works as expected. If I use--HEAD
brew tries to install libevent HEAD too.I'm not sure that this is desired.
The text was updated successfully, but these errors were encountered: