You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, cargo-lichking parses license expressions by just splitting them apart on slashes and "OR"; however, SPDX license expressions can also contain the operators "AND" & "WITH" and use parentheses for grouping.
For example, the license expression for unicode-ident (a dependency of the ubiquitous syn) is "(MIT OR Apache-2.0) AND Unicode-DFS-2016". When cargo-lichking tries to find the licenses for this package, the following errors are output:
ERROR cargo_lichking::bundle > unicode-ident has no candidate texts for license (MIT in /Users/jwodder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.12
ERROR cargo_lichking::bundle > unicode-ident has no candidate texts for license Apache-2.0) AND Unicode-DFS-2016 in /Users/jwodder/.cargo/registry/src/index.crates.io-6f17d22bba15001f/unicode-ident-1.0.12
and no license files are found, even though unicode-ident's source contains LICENSE-APACHE, LICENSE-MIT, and LICENSE-UNICODE files.
The text was updated successfully, but these errors were encountered:
Currently,
cargo-lichking
parses license expressions by just splitting them apart on slashes and "OR"; however, SPDX license expressions can also contain the operators "AND" & "WITH" and use parentheses for grouping.For example, the license expression for
unicode-ident
(a dependency of the ubiquitoussyn
) is "(MIT OR Apache-2.0) AND Unicode-DFS-2016
". Whencargo-lichking
tries to find the licenses for this package, the following errors are output:and no license files are found, even though
unicode-ident
's source containsLICENSE-APACHE
,LICENSE-MIT
, andLICENSE-UNICODE
files.The text was updated successfully, but these errors were encountered: