Skip to content

fix: cask uses postflight_steps instead of deprecated postflight - #46

Merged
maximilianfeix merged 1 commit into
mainfrom
cask-postflight-steps
Oct 15, 2026
Merged

maximilianfeix merged 1 commit into
mainfrom
cask-postflight-steps

Conversation

@maximilianfeix

Copy link
Copy Markdown
Owner

Every brew install/upgrade printed "Calling postflight is deprecated! Use postflight_steps instead." The quarantine removal now uses postflight_steps → on_macos → run /usr/bin/xattr via GoReleaser custom_block.

Tested by putting the generated stanza (from goreleaser release --snapshot) into the local tap and reinstalling: no warning, com.apple.quarantine gone; without the step the attribute is present. Takes effect with the next release.

Homebrew warns on every install and upgrade of a cask with a postflight
block. GoReleaser 2.18.3 only emits hooks as postflight, so the step
goes into custom_block; the Homebrew {{staged_path}} token is written
through template string literals.
@maximilianfeix
maximilianfeix merged commit be6a078 into main Oct 15, 2026
4 checks passed
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.

1 participant