Skip to content

Remove deprecated 'postflight' Homebrew stanza, replace with 'postflight_steps' - #255

Open
nathanjcochran wants to merge 1 commit into
mainfrom
nathan/fix-homebrew
Open

nathanjcochran wants to merge 1 commit into
mainfrom
nathan/fix-homebrew

Conversation

@nathanjcochran

Copy link
Copy Markdown
Member

Installing or upgrading the cask with Homebrew 7 prints a warning that postflight is deprecated in favor of postflight_steps. GoReleaser generates the deprecated postflight stanza from hooks.post.install and can't emit postflight_steps yet (goreleaser/goreleaser#6870), so this replaces the hook with a hand-written postflight_steps block in custom_block. It still removes the quarantine attribute from the binary on macOS.

GoReleaser puts custom_block at the top of the cask, so brew style complains about the stanza order. That's only a lint warning and doesn't affect install behavior. Once GoReleaser supports install steps, we can switch back to hooks.

@nathanjcochran
nathanjcochran requested a review from a team as a code owner October 5, 2026 17:25
@nathanjcochran nathanjcochran self-assigned this Oct 5, 2026
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