Repository navigation
Closed
Labels
enhancementNew feature or request
Description
The remaining half of #100. dockers/docker_manifests were migrated to
dockers_v2 in #136; brews is still deprecated (soft since v2.10, full in
v2.16, removed only on a major bump).
What "brews → casks" means
- Formula (today):
brew install docsclaw, a Ruby recipe that downloads
the release tarball andbin.installs it. Works on macOS and Linuxbrew. - Cask (target):
brew install --cask docsclaw, the sanctioned way to
distribute a prebuilt macOS artifact. Lives underCasks/, macOS only.
Steps
.goreleaser.yaml:brews:→homebrew_casks:directorydefaults toCasks— drop it.bin.install "docsclaw"→ a cask stanza (binaries: [docsclaw]).- Keep
skip_upload: autoso prereleases don't move the tap. - The macOS binaries are not signed/notarized, so add a post-install hook:
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/docsclaw"]
pavelanni/homebrew-tap(separate PR):- Add
tap_migrations.json({"docsclaw": "docsclaw"}) so existing
formula users are redirected instead of hitting "formula not found". - Delete the root
docsclaw.rb; GoReleaser writesCasks/docsclaw.rb.
- Add
- Docs: update install instructions (
deploy/README.md/ release notes)
tobrew install --cask docsclaw, and state that Linuxbrew loses the
Homebrew path (casks are macOS-only).
Trade-off
Casks are macOS-only. Linux users currently can brew install docsclaw via
Linuxbrew; after the switch they cannot. For DocsClaw this is probably fine
(Linux installs are containers/tarballs), but it must be an explicit decision,
not a silent side effect.
Verification
goreleaser check— nobrewsdeprecation.goreleaser release --snapshot --clean— generates the cask; inspect it.- On a Mac:
brew install --cask docsclawfrom the migrated tap, then
docsclaw --version; confirm Gatekeeper doesn't block it. brew audit --cask docsclaw.
Notes
- Do as one PR here plus one in the tap, merged together; verify install
end-to-end before the next release (same rule as Migrate GoReleaser config off deprecated dockers/docker_manifests and brews #100). - When the next PR touches
.goreleaser.yaml, also add
flags: ["--provenance=false"]to thedockers_v2entries to drop the
unknown/unknownattestation manifests from the published index.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
pavelanni commentedon Nov 17, 2026
Holding this after checking the Linux impact:
brewspublisher, not Homebrew.homebrew_formulasis not a config key — it is the docs page forbrews.goreleaser checkrejects it.brewsgenerates a formula containing bothon_macosandon_linuxblocks, sobrew install docsclawworks on Linuxbrew today.homebrew_casksgenerates a single-URL cask (url.template, one artifact); it does not emit Linux (amd64/arm64) URLs. Homebrew's Cask Cookbook now allows casks on Linux, but GoReleaser does not produce a Linux-capable cask here.So migrating to casks would drop
brew install docsclawon Linux, including @Panni's Fedora laptop.brewsis soft-deprecated and is not removed until a major version, so keeping it is safe for now.Decision needed: keep
brews(recommended) and revisit when GoReleaser removes it, or migrate to casks and accept the Linux loss / add a separate Linux install path.