Repository navigation
Use install_steps for the Homebrew cask quarantine hook - #573
Open
akhilgopu72 wants to merge 1 commit into
Open
akhilgopu72 wants to merge 1 commit into
akhilgopu72 wants to merge 1 commit into
Conversation
Homebrew deprecated the Ruby postflight block, so every brew command that loads the generated cask warns. GoReleaser v2.19 emits postflight_steps from hooks.post.install_steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
akhilgopu72
force-pushed
the
fix/cask-postflight-steps
branch
from
November 4, 2026 01:36
1c140bb to
d21011c
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #559.
Homebrew 6+ prints this on every command that loads the Doppler cask:
Change
Casks/doppler.rbis generated fromhomebrew_casks.hooks.post.install, so the fix belongs here rather than in the tap (DopplerHQ/homebrew-doppler#4 would be overwritten on the next release). GoReleaser v2.19.0 addedhooks.*.install_steps(goreleaser/goreleaser#6873), which writes Homebrew's declarativepostflight_stepsstanza. This moves the quarantine strip to it, using the snippet from GoReleaser's ownhomebrew_casksdocs:{{ .StagedPath }}renders to Homebrew's{{staged_path}}token, which is expanded at install time.Requirements
release.yamlinstalls the latest GoReleaser from the apt repo, which is currently v2.19.x. Older versions would reject the unknowninstall_stepskey.Testing
com.apple.quarantineon the binary, ranbrew reinstall --cask dopplerhq/cli/doppler: the attribute was removed anddoppler --versionruns.goreleaser releaseitself; checked the rendered output against the v2.19.0 cask template (flightStringemitspostflight_steps do ... endwheninstall_stepsis set).🤖 Generated with Claude Code