Skip to content
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

Merged
merged 4 commits into from
Apr 3, 2023

Conversation

AyanSinhaMahapatra
Copy link
Member

@AyanSinhaMahapatra AyanSinhaMahapatra commented Mar 24, 2023

  • 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.
  • Fixing a bug in scancode_version where we were not returning
    unannotated tags, but we should always return the latest tag here.
  • Regen test files that are imported with --from-json
  • Updates license policy plugin to add a list per resource instead of a dict

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁

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]>
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks

@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the license-detection-follow-up branch from cf08f4b to 30be519 Compare March 28, 2023 14:58
@AyanSinhaMahapatra AyanSinhaMahapatra changed the title Fix bug in identifier for modified detection Fix misc license detection related bugs Mar 30, 2023
Copy link
Member

@JonoYang JonoYang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the license-detection-follow-up branch from 8d388fe to bbec4af Compare April 3, 2023 09:16
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]>
@AyanSinhaMahapatra AyanSinhaMahapatra force-pushed the license-detection-follow-up branch from bbec4af to 5c9d5a8 Compare April 3, 2023 09:36
@AyanSinhaMahapatra
Copy link
Member Author

@JonoYang @pombredanne thanks! Fixed the tests, now merging.

@AyanSinhaMahapatra AyanSinhaMahapatra merged commit a3946df into develop Apr 3, 2023
@AyanSinhaMahapatra AyanSinhaMahapatra deleted the license-detection-follow-up branch April 3, 2023 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants