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

Fallback to more lax parsing of SPDX expressions #503

Merged
merged 2 commits into from
Apr 6, 2023

Conversation

Jake-Shadle
Copy link
Member

@Jake-Shadle Jake-Shadle commented Apr 6, 2023

We parse SPDX expressions from the packages license with strict rules, but cargo/crates.io allow expressions that violate the SPDX spec, notably the GNU licenses have the annoying behavior of not using + like every other license and instead use the -or-later or -only suffixes. If we fail strict parsing, we instead now fallback to more lax parsing so users don't get baseless errors.

Resolves: #498

@Jake-Shadle Jake-Shadle merged commit c92752f into main Apr 6, 2023
@Jake-Shadle Jake-Shadle deleted the allow-lax-parsing branch April 6, 2023 08:35
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

Successfully merging this pull request may close these issues.

cargo deny gives an error on "Apache-2.0 OR GPL-2.0+" in a crate's cargo.toml
1 participant