[0] https://github.com/Homebrew/brew/blob/master/share/doc/homeb...
This is not accurate. We run a minimal version of `brew update` at most once per minute when you run `brew install` or `brew upgrade`: https://github.com/Homebrew/brew/blob/5504e2c1320d52f8a92a33...
You can set this interval with `HOMEBREW_AUTO_UPDATE_SECS` and disable this functionality with `HOMEBREW_NO_AUTO_UPDATE`.
Well, that's a relief. I run an average of 4-5 brew commands every minute, so at least there's that. /s
> when you run `brew install` or `brew upgrade`
So, only the two most used `brew` commands (for me, at least) will trigger a series of git fetches and merges over the network and an in-place update of the code.
> You can [...] disable this functionality with `HOMEBREW_NO_AUTO_UPDATE`
Why was it enabled automatically in the first place? Why wasn't I notified when homebrew updated that this was the new default behavior. Why must I always dive into homebrew on github to identify (1) why it's not behaving the way I would expect a package manager to and (2) how to get back sane package manager behavior?
If there's been no updates there will be no `git fetch` run. We use a newish GitHub API to check for updates as its quicker.
> Why was it enabled automatically in the first place?
A significant numbers of our created issues are due to people having failures when they don't run `brew update`. This solves that.
> Why must I always dive into homebrew on github to identify (1) why it's not behaving the way I would expect a package manager to and (2) how to get back sane package manager behavior?
We're an open-source project run by volunteers for free in our spare time. We're underfunded and understaffed so our communication is lacking. The best current place to find out about such things is to follow our issue tracker. We aim to improve this in future.
$ env | grep HOMEBREW
HOMEBREW_BUILD_FROM_SOURCE=1
HOMEBREW_NO_AUTO_UPDATE=1
HOMEBREW_NO_EMOJI=1Each time I use a mac I have to relearn what a tap represents vs cask vs brew vs celler etc. But hey, aren't they clever with words!
Chef does the same; it has chef, knife, kitchen, berks, recipes and more. Getting started with it is a freaking nightmare.
Everything has cute logos and names and good looking README.md files to lure you into using it then you're trapped into hell.
There wasn't a problem with MacPorts / Fink, they are built on top of proven mature tech (FreeBSD ports and Debian's apt), but why not reinvent the wheel? All the cool node kids are doing it.
Homebrew has all the markers of a project I should hate, but it's so rarely inconvenienced me in practice that I can't help but like it.
I'm not sure what you were doing, but this is scary. I've been using it since 2012 or so and never had as much as a hickup.
2012 may have been around when I stopped using it, can't recall for sure. Maybe it improved after I dropped it.
HOMEBREW_NO_ANALYTICS=1
to disable Google analytics being sent[PS: that's not a serious question: it's completely facetious.]
HOMEBREW_NO_ANALYTICS=1In the end it seems that this will get better if it can attract enough OS X users so that patches start rolling in but right now it's just a few people fighting that battle.
[0] Like automatically running `brew update` with every brew command run. I was literally wondering if my computer had frozen up again when I saw that it had done a full update (which involves not only patching the brew code, but updating its source repos) before installing a pre-compiled version of tmux.