You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The documentation describes the license field of a Cargo.toml with
http://spdx.org/licenses/ lists GPL3 with the identifiers
GPL-3.0-only
andGPL-3.0-or-later
. However using the latter one,cargo publish
gives me the error message:I'm using
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.
The text was updated successfully, but these errors were encountered: