Skip to content

Generate the cask's quarantine hook as postflight_steps - #1

Merged
jchance merged 1 commit into
mainfrom
cask-postflight-steps
Nov 3, 2026
Merged

jchance merged 1 commit into
mainfrom
cask-postflight-steps

Conversation

@jchance

@jchance jchance commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Homebrew 7.0.12 warns on every update that the pingstack cask's postflight block is deprecated. pingstack-io/homebrew-tap#1 fixes the cask by hand, but GoReleaser generates that file, so the next release would bring the old block back. This changes the source.

  • hooks.post.install becomes install_steps (new in GoReleaser 2.19, which the workflows' version: "~> v2" already pick up). It renders postflight_steps with a run step on /usr/bin/xattr. {{ .StagedPath }} renders as Homebrew's install-time {{staged_path}} token.
  • The homepage gets the trailing slash brew style wants.

Checked with GoReleaser 2.19.0: goreleaser check passes, and a snapshot build generates a cask matching the tap PR, apart from version, URLs and checksums, with one exception. 2.19.0 still writes # No zap stanza required instead of zap :not_required. GoReleaser's fix for that (goreleaser/goreleaser#7253) is merged but not released yet, so a release before then will put the comment back. That only affects brew style; users see no warning.

🤖 Generated with Claude Code

Homebrew 7.0.12 warns that the cask's Ruby `postflight` block is
deprecated. GoReleaser 2.19 (which the release workflow's `~> v2`
already picks up) adds `install_steps`, which renders the declarative
`postflight_steps` stanza; `{{ .StagedPath }}` becomes Homebrew's
install-time `{{staged_path}}` token.

Also add the trailing slash `brew style` wants on the homepage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jchance
jchance merged commit ef0dace into main Nov 3, 2026
5 checks passed
@jchance
jchance deleted the cask-postflight-steps branch November 3, 2026 05:19
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