by Sytten · 1y ago · 0 comments
Me: Please install software A.
Homebrew: In order to install it I will also install 20 libraries (some need to be built from source), update openssl, update Python and wreck all virtual environments. Also since its been a while I decided it must be time to upgrade your other unrelated packages. Enjoy!
Its doing so much hand-holding and extra stuff, it cant be really considered “pro” at all.
What bothers me the most is when they immediately remove packages because they get EOL’ed, but in the real world it doesn’t work like this.
I still have projects that use old PHP versions for example and brew just refuses to install these since they have been deprecated.
So then you have to use some finicky workaroud and download these old versions off of some repo/cask that will also probably go away at some point.
When you install Homebrew you are literally granting access to virtually anyone remote access to your laptop.
Any security leaders in an org that allow Homebrew on workstations used for anything remotely sensitive should be fired.
I have been restricted from disallowing it at some orgs, which is my cue to leave before a major supply chain attack is blamed on me.
1. If you do Python development, use “uv” or any other Python interpreter-management tool which uses precompiled Python installations from a reputable source. This removes the pain of sorting out compile dependencies for Python itself, as well as solving the “unrelated brew install command trashed all my Python virtualenvs” issue. Whether you use uv or some other Python-version-manager, I hope we can all agree that Brew-managed Python for development, as well as pyenv-compiled Python, are just garbage. As a bonus, “uv” gives you decent reproducibility on a lot of other platforms, if you ever want to develop or share your software to someone on a different version of MacOS or a different OS.
2. ‘export HOMEBREW_NO_AUTO_UPDATE=1’ in all your profiles to turn off the automatic updating of unrelated dependencies. That feature is so stupid. Yes, even given security issues and changing system deps.
3. Keep MacOS updated to current minus one point version, and make sure to fully uninstall/reinstall XCode/XCode CLT every time you update MacOS, and then check “brew doctor” every time you do. I’ve had far too many “brew decides to build from source” situations that boil down to Homebrew detecting my OS or build chain as not up to date with the last 6 months of MacOS updates, or lacking prebuilt artifacts for a very recently-released version.
None of this is a defense or indictment of Homebrew itself. I’m not commenting on whether or not this should be necessary (lord knows I’ve updated into plenty of MacOS misfeature releases just to get Homebrew working again). These are just relatively easy steps that allowed me to forget Homebrew build/install issues entirely.
If I want a specific version of something I don’t mind using a specific version manager (eg. asdf or mise)