-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add Conda Support #1019
Add Conda Support #1019
Conversation
88cf587
to
a290ed0
Compare
removed extra semicolon added architecture to conda revisions removed base version fix version fetching fixed lint errors update added tests Fix license not detected for some maven packages When processing scancode result, license information is first derived from package level data. When this is not available, ScanCodeSummarizer goes through the root files to look for license. Filtering for root files is based on case sensitive file path matching. In maven packaging, META/INF directory is the standard (see https://issues.apache.org/jira/browse/MJAR-73?attachmentOrder=desc, and https://issues.apache.org/jira/browse/MEAR-30). Change the location for maven to reflect the casing. utils.getLicenseLocations is also used in utils.isLicenseFile. isLicenseFile uses case insensitive matching. Preserve this case insensitive file path matching by converting the result from getLicenseLocations to lowercase there. Test case: https://clearlydefined.io/definitions/maven/mavencentral/org.flywaydb/flyway-core/9.20.0 https://dev.clearlydefined.io/definitions/maven/mavencentral/org.flywaydb/flyway-core/7.7.2 Task: clearlydefined#846 Fix license detection for some sourcearchive packages Task: clearlydefined/crawler#533 fixed test update
13cc2e0
to
c2fc97c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your contribution!
Adaptation also needed: schema/coordinates-1.0.json, swagger.yaml (probably add on subdir mapped to namespace for conda in the description), and docs/determining-declared-license.md.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making the changes. As per previous comments, please also adapt schema/coordinates-1.0.json, swagger.yaml (include subdir mapped to namespace for conda in the description for clarity), and docs/determining-declared-license.md.
all done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look good to me. One question, for the cases of 404, [ ] is sent on line 43, while error messages are sent on line 47 and 50. Is it better to make it more consistent for all the 404 cases so that it is easier to handle on the caller side?
Yeah, that makes sense, I'll do that tomorrow morning. thanks for your review! |
Co-authored-by: lisahoong <lhoong94@gmail.com>
@lamarrr Could you address these code scanning issues? Once these are fixed, we can finally merge this 👍🏼 |
@lumaxis they are fixed now |
Service Implementation for clearlydefined/crawler#532