Skip to content

Ship COPYING in the release archives - #11

Merged
usmanbashir merged 1 commit into
mainfrom
include-copying
Oct 28, 2026
Merged

usmanbashir merged 1 commit into
mainfrom
include-copying

Conversation

@usmanbashir

Copy link
Copy Markdown
Owner

Summary

The release archives never included the license. GoReleaser's default archive globs are LICENSE*, README* and CHANGELOG*, and clau's GPL text lives in COPYING, so every archive (and with them the Homebrew cask) shipped only the binary and README.md. v0.5.2's linux_amd64 archive confirms it.

Changes

  • .goreleaser.yaml: archives now lists files: [README.md, COPYING]. Setting files replaces the defaults, so README.md is named explicitly to keep it in the archives. A comment above the list says why.

Behavior notes

  • No code changes.
  • Each archive gains COPYING (about 35 KB). Nothing else in the archives changes.
  • The cask installs only the clau binary and doesn't list the archive's contents, so it needs no change. COPYING sits next to the binary in the Caskroom.

Test plan

  • goreleaser check passes with GoReleaser 2.19.0 (downloaded from its releases and verified against checksums.txt).
  • goreleaser release --snapshot --clean builds all six archives, and each one holds COPYING, README.md and the binary (clau, or clau.exe in the two Windows zips).
  • CI's goreleaser-check job passes.
  • The next tagged release's archives contain COPYING.

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.
@usmanbashir
usmanbashir merged commit 920c0a0 into main Oct 28, 2026
4 checks passed
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