-
Notifications
You must be signed in to change notification settings - Fork 315
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
Allow scan storage providers to express that they only work for packages (not projects) #6460
Comments
Note that there is no such thing as "Yarn packages"; Yarn is an alternative package manager for NPM packages.
That's more or less expected. What happens here is that ORT looks for stored scan results at ClearlyDefined for the Yarn project you're analyzing / scanning. But as ClearlyDefined only has results for packages that have already been published, it cannot have results for the source code of your unpublished project. For Yarn projects, the ORT id's type is "Yarn". But as soon as you would publish the package for the project to an NPM registry, ORT would consider that package id's type to be "NPM". |
@mnonnenmacher do you have a good idea how we could limit certain scan storage implementations to only package entities? |
Thank you very much for your explanation. So it would only help for the cases with missing copyrights to add these via curations, as this feature branch would suggest. |
@sschuberth I think best would be if the storage implementations had a property for that, then the scanner could take this into account when fetching scan results. @schvvarzekatze Please also note that you have configured ClearlyDefined as a scan results storage above, to get curations from ClearlyDefined you need to configure it as a package curation provider, see: ort/model/src/main/resources/reference.yml Lines 39 to 68 in 13f5dd2
|
You mean like simply also passing the |
Ping @mnonnenmacher. |
This should probably be implemented as part of #6603. |
Yes, for example.
To me, these are two independent tasks. I also wonder if we still need this ticket as the description is mixing curation providers with scan storages. |
Is it? I don't see how. Anyway, I'd like to keep this open as a reminder that we should have something like "capabilities" for a scan storage provider to express whether it makes sense to query it for project scan results in the first place. |
The description starts with "I just retried to use ClearlyDefined to curate missing copyrights". |
Ah, right. The quoted log though comes from scan storages. I believe there simply was no difference made by the OP between the ClearlyDefined curation and ClearlyDefined scan storages, assuming that enabling the one would also enable the other. Anyway, probably no public scan storage would ever contain results for projects, but only for packages, so querying these for projects could be avoided. |
I just retried to use ClearlyDefined to curate missing copyrights. This worked perfectly for all gradle packages, but still not for yarn.
I used the config as described in the readme:
I only found this warning in the logs:
It seems that clearly defined is not applied on the npm Libraries behind
package.json
of the project node.Can this be curated by any other ORT config than this mentioned above?
Thank you very much.
The text was updated successfully, but these errors were encountered: