Skip to content

Drop NONE and NOASSERTION when combining declared licenses - #75

Merged
andrew merged 1 commit into
mainfrom
drop-special-license-values
Nov 2, 2026
Merged

andrew merged 1 commit into
mainfrom
drop-special-license-values

Conversation

@andrew

@andrew andrew commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

spdx v0.3.6 rejects NONE and NOASSERTION inside compound expressions (git-pkgs/spdx#41), so a manifest listing MIT and NOASSERTION now normalizes to an empty expression. Before the bump the output was MIT AND NOASSERTION / MIT OR NOASSERTION, which is not valid SPDX either.

This bumps spdx to v0.3.6 and drops NONE and NOASSERTION when other licenses are declared, so the example above gives MIT. A lone NONE or NOASSERTION is kept.

spdx v0.3.6 rejects them inside compound expressions, so a manifest listing MIT and NOASSERTION produced an empty expression. Bump spdx and drop them when other licenses are declared.
Copilot AI balanced review requested due to automatic review settings November 2, 2026 17:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@andrew
andrew merged commit 6d84755 into main Nov 2, 2026
10 checks passed
@andrew
andrew deleted the drop-special-license-values branch November 2, 2026 21:47
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.

2 participants