Skip to content

fix(cask): remove quarantine with postflight_steps instead of deprecated postflight - #202

Merged
JustMaris merged 1 commit into
mainfrom
fix/cask-postflight-steps
Oct 20, 2026
Merged

JustMaris merged 1 commit into
mainfrom
fix/cask-postflight-steps

Conversation

@JustMaris

Copy link
Copy Markdown
Member

Homebrew deprecated Ruby postflight blocks in casks (brew warns on every eraser install/upgrade). GoReleaser's hooks.post.install always renders one, so the step moves to custom_block as a postflight_steps block.

  • chdir: "." resolves to the staged path; {{staged_path}} can't be used because GoReleaser templates custom_block.
  • Verified locally: GoReleaser snapshot renders the block; reinstalling the cask with it gives no deprecation warning, the quarantine attribute is present before the step and gone after, and eraser --version runs.
  • custom_block lands at the top of the cask, so brew style flags stanza order (cosmetic; the tap CI only runs on PRs and the current cask already fails style on the deprecation).

@JustMaris
JustMaris merged commit 9c8e274 into main Oct 20, 2026
10 checks passed
@JustMaris
JustMaris deleted the fix/cask-postflight-steps branch October 20, 2026 18:37
@dnb-robot dnb-robot Bot mentioned this pull request Oct 20, 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