Skip to content

Add Homebrew bottle support via GoReleaser#1889

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/create-homebrew-bottle
Draft

Add Homebrew bottle support via GoReleaser#1889
Copilot wants to merge 3 commits intomainfrom
copilot/create-homebrew-bottle

Conversation

Copy link
Contributor

Copilot AI commented Feb 2, 2026

Homebrew formula currently builds from source, requiring Go compiler. This adds bottle (prebuilt binary) distribution via GoReleaser's native Homebrew integration.

Changes

  • .goreleaser.yml: Added brews section configuring bottle creation

    • Repository: DefangLabs/homebrew-defang
    • Shell completions generated at install time via defang completion {bash,zsh,fish}
    • Commit author: defang-bot
  • .github/workflows/go.yml:

    • Added HOMEBREW_ACTION_TRIGGER_TOKEN to GoReleaser env
    • Removed manual formula update trigger (GoReleaser now handles this)

Technical Notes

GoReleaser will automatically:

  1. Create bottles from signed/notarized macOS universal binaries
  2. Generate formula with bottle references
  3. Push to tap repository on release

Users get prebuilt binaries instead of 2-5 minute compile. Go compiler no longer required as dependency.

Original prompt

This section details on the original issue you should resolve

<issue_title>Create homebrew bottle for the Defang CLI binaries</issue_title>
<issue_description>Current brew needs Go compiler because it builds from source. This should not be necessary: we should ship the prebuilt and signed binaries. This should be done ideally with Goreleaser during the release workflow.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits February 2, 2026 19:01
Co-authored-by: lionello <591860+lionello@users.noreply.github.com>
Co-authored-by: lionello <591860+lionello@users.noreply.github.com>
Copilot AI changed the title [WIP] Add homebrew bottle for Defang CLI binaries Add Homebrew bottle support via GoReleaser Feb 2, 2026
Copilot AI requested a review from lionello February 2, 2026 19:05
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.

Create homebrew bottle for the Defang CLI binaries

2 participants