License metadata mismatch: README + Cargo.toml claim MIT, but LICENSE file is Apache-2.0
Summary
The repository's metadata claims MIT in three places, but the actual LICENSE file at v0.38.0 (and on master) is the Apache License 2.0 verbatim text. As a downstream user adopting rtk into a supply-chain durability process, I caught this during routine SHA256-vs-canonical license verification.
Evidence
Files claiming MIT:
README.md:12— License badgeLicense-MIT-yellow.svglinking tohttps://opensource.org/licenses/MITREADME.md:484— License section: "MIT License - see LICENSE for details."Cargo.toml:7—license = "MIT"
Actual LICENSE file (Apache-2.0):
- File content is the verbatim Apache License 2.0 text
- Footer reads: "Copyright 2024 rtk-ai and rtk-ai Labs"
- SHA256 of LICENSE at
v0.38.0(commit4338f029ec43b69eb959748ec02cd7885200c264):4044ade9c21d8b084d3d16a03375cf3b7e166b946a327bb37a3fbbdb53287cfd - For comparison, canonical SPDX MIT text SHA256:
b05785f9f18e6716bab63424b11454513b9943a222595b70411009202fc592b5— byte-different from rtk's LICENSE file
GitHub's own auto-detect agrees with the file content:
$ gh api repos/rtk-ai/rtk --jq '.license'
{
"key": "apache-2.0",
"name": "Apache License 2.0",
"spdx_id": "Apache-2.0",
...
}
Possible explanations
- The license was changed mid-project (perhaps when
rtk-ai Labswas attributed in the LICENSE footer), but theREADME.mdbadge + License section +Cargo.tomlmetadata were never updated to match. - The project was originally forked from an MIT-licensed source and the README/Cargo.toml claims were carried over without being reconciled when the LICENSE was replaced.
- A deliberate dual-license intent (least likely — no documentation supports it).
Why this matters for downstream users
The legally operative license is whatever the LICENSE file says (Apache-2.0). Downstream tools auto-detect from the LICENSE file (GitHub does, Cargo's index does, package scanners do), so consumers like Cargo crates.io readers will see Apache-2.0; meanwhile a casual reader of the README or Cargo.toml sees MIT and may make compliance decisions on that incorrect basis. The metadata discrepancy could create estoppel ambiguity in unusual circumstances.
Suggested action
Reconcile the metadata to match the LICENSE file:
- If Apache-2.0 is the intended license (which the file content + GitHub auto-detect both indicate):
- Update the README.md badge link + alt-text to Apache-2.0
- Update the README.md License section text
- Update
Cargo.tomllicense = "Apache-2.0"
- If MIT is the intended license: replace the LICENSE file content with the canonical MIT text and update the copyright footer accordingly.
Either path resolves the discrepancy; the file-vs-metadata mismatch is what creates the ambiguity. Happy to open a PR for the README + Cargo.toml metadata change once you confirm which license is intended.
Thanks for rtk — useful tool. The supply-chain due diligence we ran on it (LICENSE SHA256 verification, source-level network/telemetry recon, mirror + binary archive + version pin per a 4-layer durability pattern we've codified) caught this discrepancy on first application — pleased to report the rest of the project metadata + behavior matches the README's claims faithfully.
wshm · Automated triage by AI
🔍 Automated Triage
| 📋 Category | docs |
| 🟠 Priority | high |
| 🎯 Confidence | 97% |
Summary
License metadata mismatch: README and Cargo.toml claim MIT but LICENSE file is Apache-2.0 — reconcile metadata to match actual license file
This looks like a simple fix that could be auto-resolved. Repo maintainers can use
/wshm fixto attempt it.
📁 Relevant files
LICENSEREADME.mdCargo.toml
Triaged automatically by wshm · This is an automated analysis, not a human review.
This issue has been automatically marked as stale due to 90 days of inactivity. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet.
Closing as a duplicate of #1064, which tracks the same problem and is now fixed (PR #1333). Please comment on #1064 or open a new issue with a fresh reproduction if you still see this on the latest version.