警告:不推荐在瓶子块中调用 `sha256 "digest" => :tag`!在公式上使用`brew style --fix`

Ste*_*dia 14 php macos homebrew

我无法找出如何处理此错误...这里是完整的消息:

MacBook-Pro ~ % brew unlink php@7.4 && brew link --force --overwrite php@5.6
Unlinking /usr/local/Cellar/php@7.4/7.4.16... 0 symlinks removed.
Warning: Already linked: /usr/local/Cellar/php@5.6/5.6.40
To relink:
  brew unlink php@5.6 && brew link --force php@5.6
MacBook-Pro ~ % brew unlink php@5.6 && brew link --force php@5.6  
Unlinking /usr/local/Cellar/php@5.6/5.6.40... 25 symlinks removed.
Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@7.0.rb:10

Warning: Calling `sha256 "digest" => :tag` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256 tag: "digest"` instead.
Please report this issue to the exolnet/deprecated tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula/php@7.1.rb:10

Linking /usr/local/Cellar/php@5.6/5.6.40... 25 symlinks created.
Run Code Online (Sandbox Code Playgroud)

我不确定sha256 "digest" => :tag与 Homebrew 或 exolnet 相关的“调用瓶子块”是什么意思,并且尝试运行brew style --fix php@x.x似乎修复了很多东西,但是我再次运行 unlink/link 和 eXolnet 的 GitHub 时遇到相同的错误已存档,所以我没有看到“打开新问题”按钮...所以我不确定应该在哪里报告问题。

我在 macOS Catalina 10.15.7 上,在 MacBook Pro 2019 上,我昨天刚刚将 Homebrew 更新到版本 3.0.11-156-gbf79e3d(无论如何它会自动更新)。

尝试谷歌搜索这给出了 Ruby 答案或看似无关的东西,我不熟悉 Ruby 或其他那些东西......我不知道这些警告是红鲱鱼还是什么,我不确定在哪里发布关于它。我什至不知道我是否应该处理这些错误......

我只需要在我的“新”Mac Catalina 安装上运行 PHP 5.6、7.3 和 7.4(我的老板现在建议不要使用 Big Sur)。

Urm*_*iev 12

尝试运行:

brew style --fix /usr/local/Homebrew/Library/Taps/exolnet/homebrew-deprecated/Formula
Run Code Online (Sandbox Code Playgroud)

我也不熟悉 ruby​​,但它修复了


小智 5

也许你应该尝试brew update-reset修复它,它对我有用。