From 3e6ed9f015a59cc00d97e2c74d632cb9239a7d41 Mon Sep 17 00:00:00 2001 From: Hendrik Brombeer Date: Thu, 30 Apr 2026 20:06:02 +0200 Subject: [PATCH] fix(release): publish Homebrew formula instead of cask MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit goreleaser was writing into Casks/grounds.rb on every release (0.1.8 → 0.1.10), but `brew install grounds/tap/grounds` looks for a Formula, not a Cask. The top-level grounds.rb (Formula) in the tap was last touched manually for 0.1.7 and never updated since — so anyone using the formula install path stuck at 0.1.7 while every release pushed a fresh Cask none of them touched. Cask is for macOS GUI apps; Formula is the conventional shape for a cross-platform CLI binary. Switching to `brews:` so each release overwrites the top-level Formula and the install path users already have starts working again. The obsolete Casks/grounds.rb in the tap can be deleted in a separate cleanup; leaving it temporarily keeps any existing `brew install --cask` users at 0.1.10 until they switch. --- .goreleaser.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 179bc60..688deea 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -47,7 +47,7 @@ nfpms: formats: [deb, rpm] bindir: /usr/bin -homebrew_casks: +brews: - repository: owner: groundsgg name: homebrew-tap @@ -55,16 +55,15 @@ homebrew_casks: # exposed as HOMEBREW_TAP_PAT in the workflow. token: "{{ .Env.HOMEBREW_TAP_PAT }}" name: grounds - binaries: - - grounds homepage: https://grounds.gg description: Grounds Internal Developer Platform CLI license: Apache-2.0 - generate_completions_from_executable: - executable: "bin/grounds" - args: - - completion - shell_parameter_format: cobra + # Cask was the old setup; goreleaser wrote 0.1.10+ into Casks/ + # while the top-level Formula (where `brew install grounds/tap/grounds` + # looks) stuck at 0.1.7. Formula is the conventional shape for a + # CLI binary and lets users keep the formula install path. + test: | + assert_match "grounds version", shell_output("#{bin}/grounds version") scoops: - repository: