-
Notifications
You must be signed in to change notification settings - Fork 19
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
Incorrect licenseConcluded (OR instead of AND) for pkg:golang/github.com/klauspost/[email protected] #77
Comments
Thanks @nodet for raising this issue. I looked into our data source for this case, which is ecosyste.ms. You can check their response for the given module here: https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com/klauspost/compress If you can tell, it does include the list of licenses (under parlay/lib/ecosystems/enrich_spdx.go Line 93 in 327a30a
I'm inclined to change it to |
I'm not sure that changing the default from OR to AND helps much. Looking at the list of our dependencies, I can see a number of cases that would be broken by this change:
All of these are modules that are licensed under terms that allow users to choose under which license they use the code. These ones are the reverse: the user needs to comply with multiple licenses. They are currently incorrect, and would be fixed with the proposed change:
I don't know that our set of dependencies is representative, and that it is often the case that there are more ORs than ANDs. But whatever default you use, some will be incorrect. The point is that I think the only way to get this right is to have ecosyste.ms store and return the correct information. |
Any feedback on the above? |
For package
pkg:golang/github.com/klauspost/[email protected]
, Parlay incorrectly returnswhere it should be
The license text for this package is at https://github.com/klauspost/compress/blob/v1.17.8/LICENSE. This file is organised as such:
The Parlay output is incorrect, as it should be an 'AND' clause because we have to comply with all of the licenses, not an 'OR' clause that lets us choose. See https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/#d4-composite-license-expressions.
Here's how to reproduce.
The text was updated successfully, but these errors were encountered: