Repository navigation
Publish thv to Homebrew as a cask - #6859
Merged
Merged
Conversation
GoReleaser deprecated the brews pipe in favour of homebrew_casks and warns on every release. thv ships prebuilt binaries, which is what casks are for. Casks are quarantined on download and the darwin binaries are signed but not notarized, so a post-install hook strips the quarantine attribute to keep Gatekeeper from blocking thv. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6859 +/- ##
==========================================
+ Coverage 79.73% 79.77% +0.04%
==========================================
Files 819 819
Lines 83667 83667
==========================================
+ Hits 66711 66746 +35
+ Misses 16951 16916 -35
Partials 5 5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
2 of 6 tasks
rdimitrov
added a commit
to stacklok/homebrew-tap
that referenced
this pull request
Oct 19, 2026
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
added a commit
to stacklok/homebrew-tap
that referenced
this pull request
Oct 19, 2026
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]>
This was referenced Oct 20, 2026
1 task
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 the
brewspipe (formulas) in favour ofhomebrew_casks, and every release logsDEPRECATED: brews should not be used anymore.thvonly ships prebuilt binaries, which is what casks are meant for.brewswithhomebrew_casksin.goreleaser.yaml. The cask is written toCasks/thv.rbin the samestacklok/homebrew-tap, using the same token and commit author.com.apple.quarantinefrom the macOS binary. Homebrew quarantines cask downloads (it doesn't for formulas), and our darwin binaries are Developer ID signed but not notarized, so Gatekeeper would otherwise blockthv.testblock, because casks don't support one.Type of change
Test plan
Manual testing (describe below)
goreleaser check(v2.15.4) passes with no deprecation warnings.Ran
goreleaser release --snapshot --skip=sign,sbom,publish,before,wingetlocally and checked the generateddist/homebrew/Casks/thv.rb. It includes darwin and linux for amd64/arm64,binary "thv", and the quarantine-removalpostflighthook.Does this introduce a user-facing change?
Yes, for Homebrew users.
thvwas installed as a formula (Formula/thv.rbinstacklok/homebrew-tap).Casks/thv.rb).brew install stacklok/tap/thvstill works for new installs.Existing formula installs only move over once the tap migration below is done.
Special notes for reviewers
stacklok/homebrew-tap, after the first release that includes this change: deleteFormula/thv.rband add atap_migrations.jsonentry forthv, sobrew upgrademoves existing users to the cask. Until then, the tap has both a stale formula and the new cask with the same name.hooks.post.installsyntax. GoReleaser's docs mark it as deprecated in the unreleased v2.19 in favour ofinstall_steps. The release workflow pins~> v2, so that will need another small edit once v2.19 ships.🤖 Generated with Claude Code