Skip to content

fix: use postflight_steps for cask quarantine hook - #3084

Open
kemosabe-afk wants to merge 1 commit into
go-task:mainfrom
kemosabe-afk:fix/cask-postflight-steps
Open

kemosabe-afk wants to merge 1 commit into
go-task:mainfrom
kemosabe-afk:fix/cask-postflight-steps

Conversation

@kemosabe-afk

Copy link
Copy Markdown

Fixes #3018.

Homebrew deprecated the postflight stanza, so every brew run that touches the go-task cask prints a warning. GoReleaser 2.19.0 added hooks.post.install_steps, which writes postflight_steps instead. The release workflow uses version: latest, so the next release picks it up.

The steps DSL does not allow system_command, so the xattr -h check is replaced with on_macos. This is the form shown in the GoReleaser homebrew_casks docs.

Checked by loading the resulting cask on Homebrew 7.0.11: it parses without the deprecation warning and brew style no longer reports Cask/InstallSteps.

@kemosabe-afk
kemosabe-afk force-pushed the fix/cask-postflight-steps branch from 839ec41 to 8adba1f Compare October 28, 2026 12:48

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Homebrew warning: postflight is deprecated; use postflight_steps

1 participant