Repository navigation
Ship COPYING in the release archives - #11
Merged
Merged
Conversation
GoReleaser's default archive globs are LICENSE*, README* and CHANGELOG*, so the GPL text in COPYING never reached the archives, and with them the Homebrew cask. Listing files replaces those defaults, so README.md is named alongside COPYING.
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.
Summary
The release archives never included the license. GoReleaser's default archive globs are
LICENSE*,README*andCHANGELOG*, and clau's GPL text lives inCOPYING, so every archive (and with them the Homebrew cask) shipped only the binary andREADME.md. v0.5.2'slinux_amd64archive confirms it.Changes
.goreleaser.yaml:archivesnow listsfiles: [README.md, COPYING]. Settingfilesreplaces the defaults, soREADME.mdis named explicitly to keep it in the archives. A comment above the list says why.Behavior notes
COPYING(about 35 KB). Nothing else in the archives changes.claubinary and doesn't list the archive's contents, so it needs no change.COPYINGsits next to the binary in the Caskroom.Test plan
goreleaser checkpasses with GoReleaser 2.19.0 (downloaded from its releases and verified againstchecksums.txt).goreleaser release --snapshot --cleanbuilds all six archives, and each one holdsCOPYING,README.mdand the binary (clau, orclau.exein the two Windows zips).goreleaser-checkjob passes.COPYING.