Repository navigation
go-release: optionally build GoReleaser from blairham/goreleaser - #44
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a
goreleaser-refinput 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 neitherbrews(deprecated) nor casks can do. It is proposed upstream as goreleaser/goreleaser#7342; this lets blairham's tools use it now.env, not${{ }}in the script.render-bottlesjob rendersinternal/testdata/release/goreleaser-bottles.yamlthrough the fork at6b2bad9d, andrender-bottles-checksholds the formula to its four bottles (sha256 per tag, checksums.txt, keg layout). Verified locally against the same fixture, including a negative control.