Skip to content

go-release: optionally build GoReleaser from blairham/goreleaser - #44

Merged
blairham merged 2 commits into
mainfrom
goreleaser-fork
Nov 23, 2026
Merged

blairham merged 2 commits into
mainfrom
goreleaser-fork

Conversation

@blairham

Copy link
Copy Markdown
Owner

Adds a goreleaser-ref input to go-release.yml. When set to a full commit SHA of blairham/goreleaser, the workflow builds that fork (outside the workspace, so GoReleaser's dirty-tree check stays green) and runs it instead of goreleaser-action. Empty keeps today's behaviour for every caller.

Why: the fork adds homebrew_bottles:, a Homebrew formula that builds from source and pours bottles built from the release binaries, which neither brews (deprecated) nor casks can do. It is proposed upstream as goreleaser/goreleaser#7342; this lets blairham's tools use it now.

  • Arguments reach the fork's run step through env, not ${{ }} in the script.
  • CI: new render-bottles job renders internal/testdata/release/goreleaser-bottles.yaml through the fork at 6b2bad9d, and render-bottles-checks holds the formula to its four bottles (sha256 per tag, checksums.txt, keg layout). Verified locally against the same fixture, including a negative control.

Upstream GoReleaser can only publish Homebrew formulas that download a
prebuilt binary (brews, deprecated) or casks, and neither builds from
source. blairham/goreleaser adds homebrew_bottles: a source formula with
a bottle block, proposed upstream as goreleaser/goreleaser#7342.

goreleaser-action can only install official releases, so a caller that
sets goreleaser-ref gets that fork built at the given commit and run in
its place. Only a full SHA is accepted, so the binary that releases is
pinned like every action here, and it is fetched outside the workspace
because an untracked directory fails GoReleaser's dirty-tree check.
Callers that leave the input empty are unchanged.

CI renders a bottles fixture through the new path and holds the formula
to the bottles it built: each tag's sha256, checksums.txt, and layout.
GoReleaser parses its config strictly, so the official binary rejects a
config with homebrew_bottles: outright. A caller whose CI image check
uses builder: goreleaser (k4a, for one) would fail there before the
release ever ran, so this check needs the same pinned fork.
@blairham
blairham merged commit ed30c15 into main Nov 23, 2026
17 checks passed
@blairham
blairham deleted the goreleaser-fork branch November 23, 2026 14:47
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.

1 participant