Skip to content

fix: use brews instead of homebrew_casks in goreleaser#124

Open
cwalton wants to merge 1 commit intobasecamp:masterfrom
cwalton:fix-homebrew-automation
Open

fix: use brews instead of homebrew_casks in goreleaser#124
cwalton wants to merge 1 commit intobasecamp:masterfrom
cwalton:fix-homebrew-automation

Conversation

@cwalton
Copy link
Copy Markdown

@cwalton cwalton commented Apr 9, 2026

Summary

  • Switches GoReleaser config from homebrew_casks to brews
  • Changes output directory from Casks to Formula
  • Replaces the casks-only completions: shorthand with an explicit install: block (including shell completions for bash, zsh, and fish)
  • Adds a test: block

Root cause

homebrew_casks is GoReleaser's DSL for macOS GUI apps distributed as .dmg/.pkg installers. fizzy is a CLI binary in a tarball — it should use brews, which generates a standard Homebrew Formula. The previous config was generating a Cask and writing it to Casks/ in the tap, so brew install basecamp/tap/fizzy was never resolvable.

Verification

The generated formula in dist/homebrew/Formula/fizzy.rb (produced by goreleaser release --snapshot --clean) confirms correct output: platform-specific on_macos/on_linux blocks, proper binary install, shell completions, and a passing test block.

Fixes #107
Fixes #70


Summary by cubic

Fix Homebrew publishing for fizzy by switching GoReleaser from casks to formulae. This makes brew install basecamp/tap/fizzy work as expected.

  • Bug Fixes
    • Replace homebrew_casks with brews to generate a Homebrew Formula for the CLI.
    • Output to Formula/ instead of Casks/.
    • Add explicit install block to install the binary and completions (bash, zsh, fish).
    • Add a test block that runs fizzy version.

Written for commit 1410fc9. Summary will update on new commits.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

Sensitive Change Detection (shadow mode)

This PR modifies control-plane files:

  • .goreleaser.yaml

Shadow mode — this check is informational only. When activated, changes to these paths will require approval from a maintainer.

@github-actions github-actions bot added the bug Something isn't working label Apr 9, 2026
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

@cwalton cwalton marked this pull request as ready for review April 9, 2026 16:42
Copilot AI review requested due to automatic review settings April 9, 2026 16:42
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the GoReleaser configuration to publish fizzy to the Homebrew tap as a standard Formula (not a Cask), so brew install basecamp/tap/fizzy resolves and installs correctly.

Changes:

  • Replace homebrew_casks with brews and switch the tap output directory from Casks/ to Formula/.
  • Replace the cask-only completions: shorthand with an explicit install: script that installs the binary and bash/zsh/fish completions.
  • Add a Homebrew test: block that runs fizzy version.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fizzy not available via Homebrew tap brew install fails - homebrew-fizzy-cli tap repository not found

2 participants