【问题标题】:Warning: Calling `sha256 "digest" with Brew on macOS警告:在 macOS 上使用 Brew 调用“sha256”“摘要”
【发布时间】:2021-07-24 07:22:21
【问题描述】:

自从我上次在我的 macOS 中运行 brew update 命令以来,我开始在下面遇到这个问题。运行brew style --fix 并不能解决问题。

我该如何解决?

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 henkrehorst/bc tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-bc/Formula/apr-util-bc.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 henkrehorst/bc tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-bc/Formula/apr-util-bc.rb:11

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 henkrehorst/bc tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-bc/Formula/apr-util-bc.rb:12

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 henkrehorst/bc tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-bc/Formula/openssl-bc.rb:15

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 henkrehorst/bc tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-bc/Formula/openssl-bc.rb:16

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 henkrehorst/bc tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-bc/Formula/openssl-bc.rb:17

【问题讨论】:

  • 你有没有得到解决方案,我也面临同样的```警告:不推荐在瓶块中调用sha256 "digest" => :tag!在公式上使用brew style --fix 来更新样式或改用sha256 tag: "digest"。请将此问题报告给 homebrew/core tap(不是 Homebrew/brew 或 Homebrew/core),或者更好的是,提交 PR 来修复它:```

标签: macos terminal homebrew


【解决方案1】:

您需要指定公式的路径来修复它,请尝试在下面运行此命令。

brew style --fix /usr/local/Homebrew/Library/Taps/henkrehorst/homebrew-bc/Formula

例子

$ brew style --fix /usr/local/Homebrew/Library/Taps/pnbv/homebrew-ffmpegvidstab/ffmpeg.rb
Fetching gem metadata from https://rubygems.org/.........
Using ...
Fetching ...
Installing ...
Bundle complete! 31 Gemfile dependencies, 84 gems now installed.
Bundled gems are installed into `../../usr/local/Homebrew/Library/Homebrew/vendor/bundle`
Removing ...
 /usr/local/Homebrew/Library/Taps/pnbv/homebrew-ffmpegvidstab/ffmpeg.rb:9:5: C: [Corrected] sha256 should use new syntax
    sha256 "468153bac4b90b445fa5c6adfb70ec3213ebc0f63c7a97a6b2a1649d9c32a786" => :mojave
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
1 file inspected, 21 offenses detected, 21 offenses corrected

【讨论】:

    猜你喜欢
    • 2021-07-07
    • 1970-01-01
    • 2022-12-12
    • 2019-05-25
    • 2019-06-27
    • 1970-01-01
    • 2012-04-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多