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
A significant amount of Rust crate.io packages are licensed under MIT or Apache-2.0. We should modify scancode such that if Apache-2.0 and MIT was detected as licenses for a crate.io package, this license should be normalized to the expression mit OR apache-2.0 instead of mit AND apache-2.0
The text was updated successfully, but these errors were encountered:
Actually I think @JonoYang meant specific cases of Apache-2.0/MIT or MIT/Apache-2.0 and this represents about 39,374 crates as of today. These are legacy expressions that date from a time when Cargo accepted a list of licenses separated by a slash. The use of / is deprecated now and no longer accepted.
This would not for things worded as MIT AND Apache-2.0 which are bona-fide and clear SPDX expressions.
IMHO we would still need to double check these ~40K crates in details to verify that this holds on all and if this does not we can track a list of exceptions.
I should have said "MIT and Apache-2.0 projects" :)
I spent a weekend doing a big slog of the Rust crate licensing and generally found that it was 50/50 as to whether a '/' meant AND or OR. Generally speaking, the more permissively licensed, the more likely it was OR, but I was also filtering out things like 'MIT/Apache-2.0' as I didn't care if it was an AND or OR for that analysis. Summary: I was surprised '/' was so inconsistently interpreted.
I spent a weekend doing a big slog of the Rust crate licensing and generally found that it was 50/50 as to whether a '/' meant AND or OR. Generally speaking, the more permissively licensed, the more likely it was OR, but I was also filtering out things like 'MIT/Apache-2.0' as I didn't care if it was an AND or OR for that analysis. Summary: I was surprised '/' was so inconsistently interpreted.
That's valuable input. It means that eventually the Rust declared license cannot be too trusted.. and we should err towards reporting these as AND by default may be?
A significant amount of Rust crate.io packages are licensed under MIT or Apache-2.0. We should modify scancode such that if Apache-2.0 and MIT was detected as licenses for a crate.io package, this license should be normalized to the expression
mit OR apache-2.0
instead ofmit AND apache-2.0
The text was updated successfully, but these errors were encountered: