Homebrew - requested URL retuned error: 404

Homebrew - requested URL retuned error: 404

我正在尝试使用 brew 安装旧版本的 terragrunt。 我已 cd 进入 homebrew-core 的 tap 目录,找到我需要的提交并尝试安装该版本。

但是我收到以下错误:

==> Downloading https://ghcr.io/v2/homebrew/core/terraform/manifests/0.13.2
##O=#  #
curl: (22) The requested URL returned error: 404
Error: Failed to download resource "terraform_bottle_manifest"
Download failed: https://ghcr.io/v2/homebrew/core/terraform/manifests/0.13.2

如果我尝试手动(通过浏览器)访问 URL,我会收到以下错误消息:

{"errors":[{"code":"UNAUTHORIZED","message":"authentication required"}]}

我能做些什么来解决这个问题吗?

更新:

Homebrew 提供版本化公式 terraform@0.13。 (terraformterraform@0.13是不同的公式,安装到不同的位置。)

brew install terraform@0.13

https://ghcr.io/v2/homebrew/coreHOMEBREW_BOTTLE_DOMAIN,其中缓存了所有预构建的二进制版本(bottles)。

您提供的错误意味着缓存的预构建已被删除。 (我猜 Homebrew 只提供了最新公式的瓶子。)你需要自己从源代码构建 terraform

brew install --build-from-source terraform