Skip to content

Parse, Valid and ExtractLicenses reject LicenseRef exceptions #39

Closed

Description

@andrew

#37 made ParseSyntax accept LicenseRef-* identifiers after WITH, but the normalizing path still rejects them. 168 ScanCode exception keys in licensedb fail this way.

Because HasCopyleft and IsFullyPermissive return false on a parse error, the failure is silent:

spdx.ExtractLicenses("GPL-2.0-only WITH LicenseRef-scancode-bacula-exception")
// [] expected exception after 'WITH'
spdx.HasCopyleft("GPL-2.0-only WITH LicenseRef-scancode-bacula-exception") // false
spdx.Valid("GPL-2.0-only WITH LicenseRef-scancode-bacula-exception")       // false

Related to #38.

Activity

  1. added a commit that references this issue on Nov 2, 2026
    46fe607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions