Skip to content

release: publish a Homebrew cask instead of a formula (spore-host#747) - #1647

Merged
scttfrdmn merged 1 commit into
mainfrom
release/homebrew-cask
Nov 15, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
release/homebrew-cask

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Part of spore-host/spore-host#747.

Replaces GoReleaser's deprecated brews: with homebrew_casks:. goreleaser check failed on brews: and now passes (GoReleaser 2.20.2).

Checked locally on Homebrew 7.0.13:

  • a snapshot build renders Casks/spawn.rb with darwin and linux URLs for arm and intel;
  • it loads, and brew audit --cask passes;
  • a real install of a snapshot cask (spore-host-mcp, from a local tarball marked quarantined) succeeded, and the post-install hook cleared the binary's quarantine bit.

Why the quarantine hook: the binaries aren't notarized, so without it macOS Gatekeeper blocks them.

Not in this PR: moving existing formula installs. The old Formula/spawn.rb stays in the tap and stops updating. After this repo's next release publishes the cask, a homebrew-tap change adds a tap_migrations.json entry, deletes the formula, and is tested on a machine that has the formula installed. On such a machine the cask doesn't link its binary while the formula is still installed, which I saw while testing.

spawn: the cask depends on truffle's cask (depends_on cask:), so truffle has to release its cask first, and the two formulas move together. spawn's formula depends on truffle's.

@scttfrdmn scttfrdmn added this to the Hardening milestone Nov 15, 2026
@scttfrdmn
scttfrdmn marked this pull request as draft November 15, 2026 07:40
@scttfrdmn

Copy link
Copy Markdown
Contributor Author

Held as a draft on purpose: this cask depends_on cask: spore-host/tap/truffle, so it must not publish until truffle has released its cask (truffle#290, then a truffle release). Merge after that.

@codecov

codecov Bot commented Nov 15, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn marked this pull request as ready for review November 15, 2026 22:10
@scttfrdmn

Copy link
Copy Markdown
Contributor Author

truffle v0.64.0 published Casks/truffle.rb (goreleaserbot 754b53c6 in homebrew-tap). The cask loads, audits, and brew fetch --cask verifies its archive, so this cask's depends_on cask: spore-host/tap/truffle now resolves. Merging.

@scttfrdmn
scttfrdmn force-pushed the release/homebrew-cask branch from dc73f96 to c88c227 Compare November 15, 2026 22:11
@scttfrdmn
scttfrdmn merged commit ef34cc0 into main Nov 15, 2026
9 checks passed
@scttfrdmn
scttfrdmn deleted the release/homebrew-cask branch November 15, 2026 22:30
@scttfrdmn scttfrdmn mentioned this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant