If an old alias, according to the tab, of a formula being upgraded (e.g. python) has the same name as the main opt link of some other formula (e.g. python@2), don't remove the main opt link of that other formula. Specifically, brew install python@2 brew upgrade python should not accidentally delete /usr/local/opt/python@2 even though python@2 used to be an alias of python.
Library
This directory contains all the code run by the official brew and brew cask commands in Homebrew and all formulae (package descriptions) in taps (repositories containing formulae) in Taps subdirectories.