Skip to content

Cargo rejects SPDX 3.0 license identifiers #5137

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

Closed
zgtm opened this issue Mar 6, 2018 · 2 comments
Closed

Cargo rejects SPDX 3.0 license identifiers #5137

zgtm opened this issue Mar 6, 2018 · 2 comments

Comments

@zgtm
Copy link

zgtm commented Mar 6, 2018

The documentation describes the license field of a Cargo.toml with

This is a string description of the license for this package. Currently
crates.io will validate the license provided against a whitelist of known
license identifiers from http://spdx.org/licenses/. Multiple licenses can be
separated with a /.

http://spdx.org/licenses/ lists GPL3 with the identifiers GPL-3.0-only and GPL-3.0-or-later. However using the latter one, cargo publish gives me the error message:

error: api errors: unknown license or other term: GPL-3.0-or-later; see http://opensource.org/licenses for options, and http://spdx.org/licenses/ for their identifiers

I'm using

$ cargo --version
cargo 0.25.0 (8c93e0895 2018-02-01)

As someone pointed out to me in the IRC, this might be due to the cargo registry using the crate license-exprs, which only parses SPDX v2 identifiers.

@sfackler
Copy link
Member

sfackler commented Mar 6, 2018

Duplicate of #4930.

@carols10cents
Copy link
Member

Closing as duplicate of #4930.

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

No branches or pull requests

3 participants