代码之家  ›  专栏  ›  技术社区  ›  Ittai

为什么brew会下载旧版本的bazel

  •  1
  • Ittai  · 技术社区  · 8 年前

    我正在尝试通过brew安装Bazel,但遇到了一个问题。 注意:在模拟新用户之前,我卸载了所有bazel版本。 根据上面的文件 bazel's site 它应该是开箱即用的,但我需要从 bazelbuild/tap/bazel . 有什么想法吗?

    ➜  Homebrew git:(stable) brew tap bazelbuild/tap && brew tap-pin bazelbuild/tap && brew install bazel   git:(stable)
    ==> Pinned bazelbuild/tap
    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.15.2.high_sierra.bottle.tar.gz
    ==> Downloading from https://akamai.bintray.com/39/390fd161839611a293e225c2dc91a37cab8d8fa7dfd4290cc680beb29c05fa15?__
    ###                                                                        4.9%^C
    ➜  Homebrew git:(stable) brew tap bazelbuild/tap && brew tap-pin bazelbuild/tap && brew install bazelbuild/tap/bazel
    ==> Pinned bazelbuild/tap
    To restore the stashed changes to /usr/local/Homebrew run:
      'cd /usr/local/Homebrew && git stash pop'
    ==> Installing bazel from bazelbuild/tap
    ==> Downloading https://releases.bazel.build/0.17.2/release/bazel-0.17.2-installer-darwin-x86_64.sh
    
    1 回复  |  直到 8 年前
        1
  •  2
  •   rds    8 年前

    Bazel不再受核心自制软件的支持。你可以打开并固定 bazel tap 相反:

    brew tap bazelbuild/tap
    brew tap-pin bazelbuild/tap
    brew upgrade bazel
    

    https://blog.bazel.build/2018/08/22/bazel-homebrew.html