-
-
Notifications
You must be signed in to change notification settings - Fork 576
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
Fix misc license detection related bugs #3299
Conversation
Fixes a bug in LicenseDetection identifier where we were only returning UUID as identifier, and without the license-expression in the case where a detection is modified and we are calculating a new identifier. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
Fixing a bug in scancode_version where we were not returning unannotated tags, but we should always return the latest tag here. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
4f5ed6d
to
1fa4668
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.
LGTM! Thanks
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
cf08f4b
to
30be519
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.
@AyanSinhaMahapatra LGTM! You'll want to update this test file before merging: https://dev.azure.com/nexB/scancode-toolkit/_build/results?buildId=10398&view=logs&j=e968ac97-6fe5-5e03-7848-d38fdbd63e89&t=68b960ee-accc-5f66-8291-47be569f7afb&l=8610
8d388fe
to
bbec4af
Compare
Since there are multiple possible license keys in a license detection, and each license policy is for a license key, the license_policy attribute should be a list, and this modifies the attribute from dict to list. Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
bbec4af
to
5c9d5a8
Compare
@JonoYang @pombredanne thanks! Fixed the tests, now merging. |
unannotated tags, but we should always return the latest tag here.
Tasks
Run tests locally to check for errors.