Skip to content

xurl cask: postflight is deprecated, causes brew update warning #4

Description

@Mirko214

Running brew update && brew upgrade prints this warning every time because of the xurl cask:

Warning: Calling `postflight` is deprecated! Use `postflight_steps` instead.
Please report this issue to the xdevplatform/homebrew-tap tap (not Homebrew/* repositories), or even better, submit a PR to fix it:
  /opt/homebrew/Library/Taps/xdevplatform/homebrew-tap/Casks/xurl.rb:37

The offending block in Casks/xurl.rb (auto-generated by GoReleaser):

postflight do
  if OS.mac?
    system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/xurl"]
  end
end

Homebrew's Cask DSL has deprecated the postflight block name in favor of postflight_steps. Since this cask file is generated by GoReleaser (per the DO NOT EDIT header), the GoReleaser Homebrew Cask template used to produce it should be updated to emit postflight_steps do ... end instead of postflight do ... end.

Environment: Homebrew on macOS (arm64), xurl 1.3.1.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions