Skip to content

Package both licence files in release archives - #11

Merged
Rick-Wilson merged 1 commit into
mainfrom
fix/release-dual-license
Aug 24, 2026
Merged

Package both licence files in release archives#11
Rick-Wilson merged 1 commit into
mainfrom
fix/release-dual-license

Conversation

@Rick-Wilson

Copy link
Copy Markdown
Collaborator

Blocker found while preparing the v1.0.0 tag.

release.yml still copied a file named LICENSE, which 4d6a880 removed in favour of LICENSE-MIT + LICENSE-APACHE. With shell: bash, the failing cp fails the step — so tagging would have produced no release assets at all, on all four platforms.

  • Both licence texts now go into dist/ and into every archive. A dual licence needs both present for the recipient to exercise the choice.
  • Drops the [ -f README.md ] guards, left over from when the repo had no README and shipped archives without one silently. A missing README should fail the build now, not pass quietly.

🤖 Generated with Claude Code

The relicense in 4d6a880 replaced LICENSE with LICENSE-MIT and LICENSE-APACHE,
but the release workflow still copied a file named LICENSE. `cp` would have
failed on a path that no longer exists, and with `shell: bash` that fails the
step — so tagging v1.0.0 would have produced no assets at all rather than
assets with the wrong licence.

Both files now go into dist/ and into each archive, which is what a dual
licence requires: the recipient needs both texts to exercise the choice.

Also drops the `[ -f README.md ]` guards. They date from when the repo had no
README and quietly shipped archives without one; it has had a README since
3e9a802, and a missing one should now fail the build rather than pass silently.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Rick-Wilson
Rick-Wilson merged commit 2b8c9ec into main Aug 24, 2026
7 checks passed
@Rick-Wilson
Rick-Wilson deleted the fix/release-dual-license branch August 24, 2026 21:58
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