Skip to content

fix(license): use a valid SPDX identifier in package and formula metadata - #1333

Merged
KuSh merged 1 commit into
rtk-ai:developfrom
TechWizard9999:docs/license-consistency
Sep 6, 2026
Merged

KuSh merged 1 commit into
rtk-ai:developfrom
TechWizard9999:docs/license-consistency

Conversation

@TechWizard9999

@TechWizard9999 TechWizard9999 commented Apr 15, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Apache 2.0 is not a valid SPDX expression. It appears in two places that feed package metadata:

  • Cargo.toml — cargo publish rejects the manifest on an unparseable license field.
  • .github/workflows/release.yml — the heredoc that generates the Homebrew formula. Since it regenerates Formula/rtk.rb on every release, it silently overwrites the already-correct license "Apache-2.0" checked in at Formula/rtk.rb:10, and brew audit flags the result.

Change

Use the Apache-2.0 identifier in both. Two lines, no behaviour change.

cargo metadata --no-deps now reports "license":"Apache-2.0".

Related issue

Related: #1064 — the license inconsistency this PR started from. That issue was already closed as completed on 2026-09-05, so this uses a plain reference rather than a closing keyword.

Scope note

This PR originally also aligned the MIT references in the READMEs and Cargo.toml. develop has since fixed all of those independently — and more completely, since it also covers README_pt.md, which this PR never touched. After rebasing onto develop, only the SPDX identifier remained unfixed, so that is all this PR now carries.

The one remaining MIT mention in the repo is SECURITY.md:127 ("License: MIT or Apache-2.0 compatible"). That is the dependency-acceptance policy, not a claim about rtk's own license, and is left as-is.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

…data

`Apache 2.0` is not a valid SPDX expression, so `cargo publish` rejects
the manifest and `brew audit` flags the generated formula. Use the
`Apache-2.0` identifier in both places.

The release workflow regenerates `Formula/rtk.rb` on every release, so
its heredoc was overwriting the already-correct value checked in at
`Formula/rtk.rb:10`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@KuSh
KuSh force-pushed the docs/license-consistency branch from 4fb31d0 to ad8cc55 Compare September 6, 2026 23:52
@KuSh KuSh changed the title docs(license): make repo license references consistent fix(license): use a valid SPDX identifier in package and formula metadata Sep 6, 2026
@KuSh
KuSh merged commit 5e10aa6 into rtk-ai:develop Sep 6, 2026
13 checks passed
@rtk-release-bot rtk-release-bot Bot mentioned this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants