使用 brew 安装 Buck 尝试命中无效 url 并抛出 404

Buck installation with brew tries to hit an invalid url and throws 404

brew install buck 抛出

curl: (22) The requested URL returned error: 404 Not Found
Trying a mirror...
==> Downloading https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz*

最后报错

Error: An exception occurred within a child process:
  DownloadError: Failed to download resource "ant--bcel"
Download failed: https://www-us.apache.org/dist/commons/bcel/binaries/bcel-6.3.1-bin.tar.gz*

The version bcel-6.3.1-bin.tar.gz does not exist in the binary- https://www-us.apache.org/dist/commons/bcel/binaries/

我如何通过这个?

更新:

homebrew-core 已经报告了这个问题。还有一个fix pr-44608等待合并

# use the pull request temporarily
brew install https://github.com/Homebrew/homebrew-core/raw/7f6d84a68ce8898d5f8bb1add2ed6d624cbb9598/Formula/ant.rb

# install buck from facebook/homebrew-fb
brew install buck

buck formula from tap facebook/homebrew-fb 取决于公式 ant。依赖项 bcel 的下载 URL 在公式 ant.

中被破坏

你没有做错任何事。这是水龙头方面的问题。在 homebrew/homebrew-core 下打开一个问题并向他们报告这个问题。

class Ant < Formula
  desc "Java build tool"
  homepage "https://ant.apache.org/"

  # ...

  resource "bcel" do
    # this url is broken, causing the build of `ant` failed
    url "https://www.apache.org/dyn/closer.cgi?path=commons/bcel/binaries/bcel-6.3.1-bin.tar.gz"
    sha256 "ed1d281cb66dedb89611019168071fe22a50ff325253e2c453dc00423905cf9d"
  end

#...