Repository navigation
Migrate thv from formula to cask - #9
Merged
Merged
Conversation
toolhive now publishes thv as a Homebrew cask (stacklok/toolhive#6859), so the formula no longer gets updates. Remove it and add a tap migration so existing installs move to the cask on brew update. Co-Authored-By: Claude Opus 5.5 <[email protected]>
rdimitrov
force-pushed
the
migrate-thv-to-cask
branch
from
October 19, 2026 22:41
c8859e3 to
2b49c0f
Compare
rdimitrov
marked this pull request as ready for review
October 19, 2026 22:41
This was referenced Oct 20, 2026
Merged
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.
Important
Ready to merge. v0.55.1 published
Casks/thv.rb(fd34bdf), and this branch is rebased on top of it.Summary
toolhive moved from GoReleaser's deprecated
brews(formula) pipe tohomebrew_casksin stacklok/toolhive#6859. From the next release on,thvis published asCasks/thv.rb, andFormula/thv.rbstops getting updates.Formula/thv.rb.tap_migrations.jsonwith{"thv": "stacklok/tap"}. Whenbrew updatesees the formula deleted, Homebrew looks up this entry and treats it as a formula-to-cask migration within the same tap (seemigrate_tap_migrationin Homebrew'scmd/update_report/reporter.rb).thvrow atCasks/thv.rb.mecatlandmodelitharen't affected. Their formulas and README row are untouched, and Homebrew only readstap_migrations.jsonfor the names of deleted package files.User-facing change
thvis installed as a formula.brew update, Homebrew prints "stacklok/tap/thv has been migrated from a formula to a cask". If the user trusts the tap, it unlinks the formula and runsbrew install --cask stacklok/tap/thvautomatically. If they only trusted thethvformula, brew printsbrew trust --cask stacklok/tap/thvand an install command for them to run.New installs still use
brew install stacklok/tap/thv.Post-release checklist
Casks/thv.rbexists onmain(written by the toolhive release)mainthvformula installed:brew list --formula thvshows a versionbrew updateprints "stacklok/tap/thv has been migrated from a formula to a cask"brew list --cask thvsucceeds, andthv versionruns without a Gatekeeper promptbrew uninstall --formula --force thv(brew prints this command)Note: Homebrew only runs the migration for changes that
brew updateitself pulls frommain. Checking out this branch in the local tap won't run it, so the migration can only be tested after the merge.🤖 Generated with Claude Code