Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo-deny could warn about metadata/LICENSE mismatches #598

Open
workingjubilee opened this issue Jan 31, 2024 · 0 comments
Open

cargo-deny could warn about metadata/LICENSE mismatches #598

workingjubilee opened this issue Jan 31, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@workingjubilee
Copy link
Contributor

It is possible for Cargo.toml SPDX metadata to mismatch the actual license, asserting that code that has a LICENSE containing, say, the AGPL-3.0, is actually MIT licensed. My understanding is cargo-deny simply trusts this metadata to be accurate. This is a reasonable limitation to accept! I found the docs slightly hard to follow on this point, so I PRed a clarification about this: #597

But it could simply include a "forced search for a matching license file" feature. Perhaps checking such metadata is valid ought to be someone else's responsibility, e.g. it would be much better if e.g. cargo publish validated this. But it's also possible that cargo-deny is already doing much more "work" in that direction and could more easily fit it in to its feature set.

@workingjubilee workingjubilee added the enhancement New feature or request label Jan 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant