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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve npm package processing #2997

Merged
merged 2 commits into from
Jun 15, 2022
Merged

Improve npm package processing #2997

merged 2 commits into from
Jun 15, 2022

Conversation

pombredanne
Copy link
Member

@pombredanne pombredanne commented Jun 15, 2022

This PR has fixes for two npm issues: empty, dummy URLs and "for_packages" reported as a null/None mistakenly.

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 馃搧

Signed-off-by: Philippe Ombredanne pombredanne@nexb.com

If the package_uid is None we should not assign this as the package
of a resource when doing package assemble() processing. We should
insyead skip this. This was discovered in npm, but could apply to other
package types.

Reported-by: Thomas Druez <tdruez@nexb.com>
Reference: nexB/scancode.io#448
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Reference: #2996
Reference: nexB/scancode.io#448
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
Copy link
Member Author

@tdruez this is fairly non-controversial so I am merging this now.

@pombredanne pombredanne merged commit c5744d8 into develop Jun 15, 2022
@pombredanne pombredanne deleted the scio-npm-bug-448 branch June 15, 2022 22:53
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.

None yet

1 participant