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

Use SPDX license expression #927

Closed
gerritsangel opened this issue Nov 5, 2022 · 2 comments
Closed

Use SPDX license expression #927

gerritsangel opened this issue Nov 5, 2022 · 2 comments

Comments

@gerritsangel
Copy link
Contributor

I tried to generate a SBOM with the CycloneDX cargo plugin. Unfortunately it fails with the following error:

Package geo has an invalid license expression, trying lax parsing (MIT/Apache-2.0): Invalid SPDX expression: invalid character(s)

Apparently, the license parameter in the Cargo.toml must be

license = "MIT OR Apache-2.0"

(See also the Cargo docs).

If there is interest, I can open a PR :)

@lnicola
Copy link
Member

lnicola commented Nov 5, 2022

Yes, please do.

@gerritsangel
Copy link
Contributor Author

Merged in #928.

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

2 participants