Repository navigation
goreleaser: use homebrew_casks hooks.post.install_steps - #83
Merged
Merged
Conversation
Homebrew 7 deprecates cask postflight in favor of postflight_steps. GoReleaser v2.19 added hooks.install_steps; the raw Ruby install hook is deprecated. Same macOS-only quarantine strip, declarative form.
Contributor
Author
|
Dev lead sign-off at head 57977ea.
|
zfields
approved these changes
Nov 18, 2026
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.
Problem
brew upgrade blues/note-cli/note-cliprints this warning:Homebrew 7.0.0 deprecated the Ruby
postflightblock in casks and replaced it with the declarativepostflight_steps. Third-party taps get a warning until 2027-12-11.GoReleaser generates
Casks/note-cli.rbfromhomebrew_casks.hooks.post.install. That is why the fix goes here and not in the tap.Change
This PR moves the quarantine hook to
hooks.post.install_steps. GoReleaser v2.19.0 added that field (see also goreleaser#6870). The new config matches GoReleaser's documented quarantine example. The hook has the same effect as before: it runsxattr -dr com.apple.quarantineonnotecardandnotehub, on macOS only.The release workflow uses
goreleaser-action@v7withversion: '~> v2', which currently resolves to v2.20.2. This PR does not need a version pin change.Verification
goreleaser check(v2.20.2) passes.postflight_steps do / on_macos do / run "/usr/bin/xattr" ... "{{staged_path}}/..."and does not havepostflight do.Not verified
brewwas not run on the new cask.brew upgrade blues/note-cli/note-clion a Mac. Confirm that the warning is gone and thatnotecardandnotehubrun.Blast radius
note-cli.rbchanges at the next tagged release.postflight_steps, which requires Homebrew 7.0.0 or later. Users on an older Homebrew can fail to load the cask after the next release.install_steps. CI is not affected.