Migrate goreleaser config from brews to homebrew_casks#82
Merged
Conversation
Replace the deprecated `brews` section with `homebrew_casks`, which GoReleaser v2.10+ expects. Adds URL verification and a post-install hook to strip macOS quarantine attributes from the unsigned binary. Drops `license` and `test` fields (not part of the cask DSL).
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the project’s GoReleaser Homebrew publishing configuration away from the deprecated brews block to the newer homebrew_casks mechanism, and documents the migration decision in the plans log.
Changes:
- Replace
.goreleaser.ymlbrewsconfig withhomebrew_casks, addingurl.verifiedand a post-install hook. - Remove formula-only fields (
directory,license,test) from the GoReleaser Homebrew config. - Add a “done” plan document describing the migration and follow-up steps for the external tap repo.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
.goreleaser.yml |
Switch Homebrew publishing from formula (brews) to cask (homebrew_casks), adding URL verification and a post-install hook. |
docs/plans/done/2026-03-27-migrate-goreleaser-brews-to-homebrew-casks.md |
Records the rationale, field-by-field decisions, and follow-up steps for the Homebrew tap migration. |
Prevent Copilot from flagging intentional patterns: - homebrew_casks vs deprecated brews in .goreleaser.yml - xattr quarantine removal hook in cask config - plan documents not needing additional migration caveats
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.
Summary
brewsgoreleaser config withhomebrew_casks(supported since v2.10; CI uses v2.14.3)url.verifiedfor Homebrew URL audit compliance on this unsigned binarylicenseandtestfields (not part of the Homebrew cask DSL)Test plan
goreleaser checkvalidates the new config cleanlycboone/homebrew-tap/Casks/brew install cboone/tap/fmworks from the generated caskCloses
Closes #62