
AFAIK Homebrew is a third-party volunteer-run project.
Updating to the latest version should be as easy as updating the Homebrew formula defined in https://github.com/Homebrew/homebrew-core/blob/master/Formula/bazel.rb
I'm following the guide from bazel documentation.
Since recently Bazel supposed to be installed using own homebrew-tap on Mac OS X. See this Blog Post.
Concerning Bazel 0.17.1 that was released yesterday, the PR to bump to Bazel homebrew-tap is still pending for review.
If actually publishing new Bazel releases on major supported platforms (Linux + Mac OS X) takes long time, there is a room for improvement/adjustment of Bazel release process.
FWIW: I was trying to Bump Gerrit CI to newly released 0.17.1 and a reviewer pointed out (I don't use Mac) to the fact that Bazel 0.17.1 doesn't exist yet on Mac platform, even though it was announced as released on Blog post and Bazel mailing list.
I fixed some stuff in our Homebrew repo and can no longer reproduce this on my own machines.
Does it work now? Homebrew via our own tap should install Bazel 0.18.0 now.
Verified:
$ brew uninstall --force bazel
Uninstalling bazel... (12 files, 93.4MB)
$ brew tap-pin bazelbuild/tap
==> Pinned bazelbuild/tap
$ brew install bazel
To restore the stashed changes to /usr/local/Homebrew run:
'cd /usr/local/Homebrew && git stash pop'
==> Downloading https://homebrew.bintray.com/bottles/bazel-0.18.0.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring bazel-0.18.0.high_sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
zsh completions have been installed to:
/usr/local/share/zsh/site-functions
==> Summary
馃嵑 /usr/local/Cellar/bazel/0.18.0: 12 files, 117.3MB
Works now!
Most helpful comment
Since recently Bazel supposed to be installed using own homebrew-tap on Mac OS X. See this Blog Post.
Concerning Bazel 0.17.1 that was released yesterday, the PR to bump to Bazel homebrew-tap is still pending for review.
If actually publishing new Bazel releases on major supported platforms (Linux + Mac OS X) takes long time, there is a room for improvement/adjustment of Bazel release process.
FWIW: I was trying to Bump Gerrit CI to newly released 0.17.1 and a reviewer pointed out (I don't use Mac) to the fact that Bazel 0.17.1 doesn't exist yet on Mac platform, even though it was announced as released on Blog post and Bazel mailing list.