Closed JohnSpeno closed 8 years ago
I'm sorry, but formula pinning really only works for leaf formulae that are not dependencies of other formulae. The pinning will be ignored if they are a dependency of a formula that is to be installed, because Homebrew is designed around the assumption that all formulae have been updated to their most recent version (thus an older installed version doesn't satisfy a dependency). If a dependency was left at an older version, things could quickly break in unexpected and hard to debug ways.
Thanks for the reply. Maybe we could get a change to the brew man page in the pin
section that warns that this can happen. Thanks.
The documentation change would need to be made in cmd/pin.rb
and then the man page needs to be regenerated by running brew man
. A pull request with this caveat added would be appreciated!
I have python3 pinned in brew, but it was upgraded today upon a
brew upgrade
command because it was listed as a dependency of thehttpie
package. Looks like python2 was also upgraded despite being pinned.I do not think this is the intended behavior.