Skip to content

chore(release): migrate Homebrew Formula (brews) to a Cask #137

Closed

Description

@pavelanni

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 and bin.installs it. Works on macOS and Linuxbrew.
  • Cask (target): brew install --cask docsclaw, the sanctioned way to
    distribute a prebuilt macOS artifact. Lives under Casks/, macOS only.

Steps

  1. .goreleaser.yaml: brews: → homebrew_casks:
    • directory defaults to Casks — drop it.
    • bin.install "docsclaw" → a cask stanza (binaries: [docsclaw]).
    • Keep skip_upload: auto so 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"]
  2. 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 writes Casks/docsclaw.rb.
  3. Docs: update install instructions (deploy/README.md / release notes)
    to brew 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 — no brews deprecation.
  • goreleaser release --snapshot --clean — generates the cask; inspect it.
  • On a Mac: brew install --cask docsclaw from the migrated tap, then
    docsclaw --version; confirm Gatekeeper doesn't block it.
  • brew audit --cask docsclaw.

Notes

Refs: #100, #135, #136.

Activity

  1. added
    enhancement
    on Nov 16, 2026
  2. pavelanni commented on Nov 17, 2026

    @pavelanni
    CollaboratorAuthor

    Holding this after checking the Linux impact:

    • Homebrew on Linux is not deprecated. The deprecation is GoReleaser's brews publisher, not Homebrew.
    • homebrew_formulas is not a config key — it is the docs page for brews. goreleaser check rejects it.
    • brews generates a formula containing both on_macos and on_linux blocks, so brew install docsclaw works on Linuxbrew today.
    • homebrew_casks generates 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 docsclaw on Linux, including @Panni's Fedora laptop. brews is 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions