Skip to content

Replace deprecated cask verified URL and postflight hook - #103

Merged
cboone merged 2 commits into
mainfrom
fix/brew-cask-deprecations
Dec 5, 2026
Merged

cboone merged 2 commits into
mainfrom
fix/brew-cask-deprecations

Conversation

@cboone

@cboone cboone commented Dec 5, 2026

Copy link
Copy Markdown
Owner

Summary

Homebrew 7.0.19 warns on every brew command about two deprecated forms in the fm cask that GoReleaser generates (cboone/homebrew-tap#17). This updates .goreleaser.yml so the next release publishes a cask without them:

  • Remove url.verified, which Homebrew now handles by default.
  • Move the quarantine cleanup from hooks.post.install, rendered as the deprecated postflight, to hooks.post.install_steps, rendered as postflight_steps. It runs xattr -dr com.apple.quarantine on the staged path on macOS, and a failure still fails the install.
  • Pin goreleaser-version: "2.20.4" in the release workflow. install_steps needs GoReleaser 2.19 or later, and the reusable workflow defaults to 2.15.4.

The warning stops only once a new fm release publishes the corrected cask.

Verification

  • goreleaser check and a local snapshot: the generated cask has no verified: and no postflight, and has the quarantine step.
  • The project's own checks passed (make vet, make fmt, make lint, make test-all).
  • One read-only Codex review round: clean.

https://claude.ai/code/session_01Q9v4NJsUuibj96yoG5fZ7b

@cboone
cboone merged commit 00082a3 into main Dec 5, 2026
12 checks passed
@cboone
cboone deleted the fix/brew-cask-deprecations branch December 5, 2026 00:34
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