Skip to content

Publish thv to Homebrew as a cask - #6859

Merged
rdimitrov merged 1 commit into
mainfrom
claude/goreleaser-brews-deprecation-390339
Oct 19, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
claude/goreleaser-brews-deprecation-390339

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

GoReleaser deprecated the brews pipe (formulas) in favour of homebrew_casks, and every release logs DEPRECATED: brews should not be used anymore. thv only ships prebuilt binaries, which is what casks are meant for.

  • Replace brews with homebrew_casks in .goreleaser.yaml. The cask is written to Casks/thv.rb in the same stacklok/homebrew-tap, using the same token and commit author.
  • Add a post-install hook that removes com.apple.quarantine from 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 block thv.
  • Drop the formula test block, because casks don't support one.

Type of change

  • Other (describe): release config migration

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,winget locally and checked the generated dist/homebrew/Casks/thv.rb. It includes darwin and linux for amd64/arm64, binary "thv", and the quarantine-removal postflight hook.

Does this introduce a user-facing change?

Yes, for Homebrew users.

  • Before: thv was installed as a formula (Formula/thv.rb in stacklok/homebrew-tap).
  • After: new releases publish a cask (Casks/thv.rb). brew install stacklok/tap/thv still works for new installs.

Existing formula installs only move over once the tap migration below is done.

Special notes for reviewers

  • Follow-up in stacklok/homebrew-tap, after the first release that includes this change: delete Formula/thv.rb and add a tap_migrations.json entry for thv, so brew upgrade moves existing users to the cask. Until then, the tap has both a stale formula and the new cask with the same name.
  • The hook uses the hooks.post.install syntax. GoReleaser's docs mark it as deprecated in the unreleased v2.19 in favour of install_steps. The release workflow pins ~> v2, so that will need another small edit once v2.19 ships.
  • Removing the quarantine flag is GoReleaser's documented workaround for non-notarized binaries. Notarizing the darwin builds would make it unnecessary.

🤖 Generated with Claude Code

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]>
@rdimitrov
rdimitrov requested a review from JAORMX as a code owner October 19, 2026 12:12
@github-actions github-actions Bot added the size/XS Extra small PR: < 100 lines changed label Oct 19, 2026
@codecov

codecov Bot commented Oct 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.77%. Comparing base (5c06e05) to head (9e0258c).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@rdimitrov
rdimitrov merged commit b027b81 into main Oct 19, 2026
43 checks passed
@rdimitrov
rdimitrov deleted the claude/goreleaser-brews-deprecation-390339 branch October 19, 2026 12:40
@github-actions github-actions Bot mentioned this pull request Oct 19, 2026
2 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XS Extra small PR: < 100 lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant