aws-sam-cli: brew cleanup gives warning "Calling `cellar` in a bottle block is deprecated!"

Using homebrew 3.1.0 on macOS 10.15.7. Ran brew cleanup and got this message:

$ brew cleanup

Warning: Calling `cellar` in a bottle block is deprecated! Use `brew style --fix` on the formula to update the style or use `sha256` with a `cellar:` argument instead.
Please report this issue to the aws/tap tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it:
  /usr/local/Homebrew/Library/Taps/aws/homebrew-tap/Formula/aws-sam-cli.rb:19

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

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

brew cleanup  29.96s user 8.42s system 98% cpu 38.833 total

Error seems to be here: https://github.com/aws/homebrew-tap/blob/master/Formula/aws-sam-cli.rb#L19

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 15
  • Comments: 17 (3 by maintainers)

Commits related to this issue

Most upvoted comments

it helps for me:

brew update-reset

Hello good afternoon;

I have an error & i dont know how to solve it:

Error: shellcheck: Calling cellar in a bottle block is disabled! Use brew style --fix on the formula to update the style or use sha256 with a cellar: argument instead. Please report this issue to the homebrew/core tap (not Homebrew/brew or Homebrew/core), or even better, submit a PR to fix it: /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/shellcheck.rb:10

This is being tracked in the homebrew repo (where the formula is). There is a PR open for fixing it already: https://github.com/aws/homebrew-tap/pull/188 and links to an issue in that github reop. Cross posting here so we have a pointer but leaving this open until its fixed, so we have something tracking on the SAM CLI repo.

Further updates will be in the homebrew repo.