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

GFDL-1x licenses make it fail #15

Open
nanotower opened this issue May 26, 2023 · 1 comment
Open

GFDL-1x licenses make it fail #15

nanotower opened this issue May 26, 2023 · 1 comment
Assignees

Comments

@nanotower
Copy link

nanotower commented May 26, 2023

i.e. satisfies('GFDL-1.1-invariants-or-later', 'MIT OR GPL-1.0') crashes. I've checked both arguments against spdx-expression-validate and both are valid.
Both of them came out of spdx-license-ids, which is obtaining the valid SPDX list right from the source.

@kemitchell kemitchell self-assigned this May 28, 2023
@nanotower nanotower changed the title satisfies('GFDL-1.1-invariants-or-later', 'MIT OR GPL-1.0') crashes GFDL-1x licenses make it fail Jun 20, 2023
@kemitchell
Copy link
Member

The issue is in normalizeGPLIdentifiers.

The way SPDX has identified the GFDLs, GFDL-1.1-invariants alone isn't a valid identifier. It has to have -or-later or -only. So merely stripping -or-later or -only off the end doesn't leave a valid license ID.

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