Repository navigation
build(release): publish mecatl to Homebrew as a cask - #2428
Merged
Merged
Conversation
GoReleaser deprecated the brews pipe in favour of homebrew_casks, and toolhive and modelith now publish casks to stacklok/homebrew-tap too. mecatl ships prebuilt binaries, which is what casks are for. The cask links both mecated and mecatui. Homebrew quarantines cask downloads and the darwin binaries are not notarized, so a postflight_steps stanza (via custom_block, matching what GoReleaser's upcoming install_steps generates) strips the attribute after install. release:verify now style-checks the cask, skipping Cask/StanzaOrder because custom_block places the stanza at the top. Co-Authored-By: Claude Opus 5.5 <[email protected]>
2 of 6 tasks
Merged
2 tasks
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
GoReleaser deprecated
brews(formulae) in favour ofhomebrew_casks..goreleaser.yamlkeptbrewsuntil the three repos publishing tostacklok/homebrew-tapcould move together. toolhive has since moved (stacklok/toolhive#6859, stacklok/toolhive#6870), and modelith is moving alongside this PR. mecatl ships prebuilt binaries, which is what casks are for..goreleaser.yaml:brewsbecomeshomebrew_casks, withbinaries: [mecated, mecatui].skip_upload: autois kept, so prereleases still don't bump the tap. The cask goes in the tap'sCasks/directory.postflight_stepsstanza strips the attribute from both binaries after install. It's written viacustom_blockbecausehooks.post.installgenerates Homebrew's deprecated Rubypostflightblock. Its body is exactly what GoReleaser's upcominginstall_stepsoption generates (goreleaser/goreleaser@4ebadf5).task release:verify: now style-checksdist/homebrew/Casks/mecatl.rb, skippingCask/StanzaOrderbecausecustom_blockputs the stanza at the top of the cask.goreleaser checkgates (release:check,ci.yml): still accept exit 2. The comment no longer citesbrews, since nothing in the config is deprecated now.release.yml,ci.yml, thecut-releaseskill (including the tap path it checks) and the README.testblock, which asserted the linker stamp, goes away because casks have no test block. Thesmoke-darwin-arm64CI job andrelease:verifyalready assert the same stamp before publication.Relates to stacklok/toolhive#6859
Type of change
Test plan
Baseline checks
task docs)Release checks
goreleaser checkexits 0 on v2.16.0 (Taskfile pin) and v2.18.2 (CI pin).task release:check,task release:snapshotandtask release:verifyall pass with v2.18.2: both binaries are at the archive root, both report the stamped version, andbrew stylereports no offenses. The generated cask covers darwin/linux × amd64/arm64.mecatedandmecatui, and both ran (--versionreports v0.0.48).User-facing change
brew install stacklok/tap/mecatlinstalls a formula.Existing formula installs move over automatically on
brew update, once the tap retiresFormula/mecatl.rb(see notes).Special notes for reviewers
Formula/mecatl.rbfromstacklok/homebrew-tapand add"mecatl": "stacklok/tap"to itstap_migrations.json(toolhive'sthventry is already there). Until then the tap has both a stale formula and the new cask, and Homebrew keeps resolvingstacklok/tap/mecatlto the formula. toolhive went through this same sequence, verified end to end (brew updateprinted "migrated from a formula to a cask" and installed the cask).postflight_stepsneeds Homebrew 5.1.14 or newer (May 2026). Older Homebrew printsUnexpected method 'postflight_steps'but still installs; that was tested with 4.6.20.custom_blockcan becomehooks.post.install_steps, andrelease:verifycan drop--except-cops Cask/StanzaOrder.cut-releaseskill's note thatbrew installfails while the repo is private is stale, because the repo is public now.🤖 Generated with Claude Code