Skip to content

fix: use goreleaser install_steps for cask postflight hook - #135

Open
Herman Jensen (h3rmanj) wants to merge 1 commit into
mainfrom
fix/cask-postflight-steps
Open

Herman Jensen (h3rmanj) wants to merge 1 commit into
mainfrom
fix/cask-postflight-steps

Conversation

@h3rmanj

Copy link
Copy Markdown
Member

Summary

  • Switch the Homebrew cask's hooks.post.install to hooks.post.install_steps so GoReleaser emits the new postflight_steps DSL instead of the deprecated raw-Ruby postflight stanza.
  • Updates the quarantine-removal xattr call to use GoReleaser's {{ .StagedPath }} template field, per the install_steps migration.

Fixes intility/homebrew-tap#6

Test plan

  • goreleaser release --snapshot --clean and confirm the generated Casks/indev.rb uses postflight_steps (matches the manual fix already applied in homebrew-tap)
  • brew style / brew audit on the generated cask shows no deprecation warning
  • Install the cask locally and confirm quarantine is stripped from the binary post-install

🤖 Generated with Claude Code

Homebrew deprecated the raw-Ruby `postflight` cask stanza in favor of
the declarative `postflight_steps` DSL. GoReleaser's hooks.post.install
still emits the old form, so switch to hooks.post.install_steps to
generate the new stanza and silence the deprecation warning on cask
install.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
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.

Warning on homebrew 7

1 participant