Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
keg: correctly cleanup old aliases. #2923
Cleanup old, versioned aliases and tap aliases folders when unlinking or uninstalling a keg.
referenced this pull request
Jul 27, 2017
Jul 30, 2017
Dear @MikeMcQuaid ,
I think I experience a problem because of this then-branch.
After upgrading a formula (say,
brew tap dreal/dreal # Hosted in https://github.com/dreal/homebrew-dreal # Install an old version brew install https://raw.githubusercontent.com/dreal/homebrew-dreal/feaa4e1c18e7e8395480bbe34c4903c4f2fe05c9/dreal.rb brew update brew upgrade dreal # Up to this point, /usr/local/opt/dreal exists. brew cleanup dreal # `brew cleanup` removes /usr/local/opt/dreal
My understanding is that I'm in a bad combination 1) My formula is in a Tap, 2) The tap is hosted in
Could you confirm that my understanding is correct? Is there a naming convention such that a formula name should be different from its user name? Please let me know if you think I should open an issue. Thank you.
This is not a supported way to install old versions.
I see. I mainly wanted to set up an environment where this branch is triggered.
I guess something like the following is better? (found from S&O).
brew tap dreal/dreal # Edit the formula to install an old version brew edit dreal # Change the `url` part to have `4.18.03.2` (line 7) # Also comment out sha256 (line 8) brew install dreal # It will install 4.18.03.2 brew edit dreal # Change line 7 to have `4.18.03.3` brew upgrade dreal # Check if /usr/local/opt/dreal exists ls /usr/local/opt/dreal brew cleanup dreal # Check if /usr/local/opt/dreal exists ls /usr/local/opt/dreal
I've tried these locally and am still able to reproduce the problem.
I think the issue is that the fullname of my formula is
I've added a renamed formula
I think to make simplest reproducible step, one has to create either a github user or github org named