-
-
Notifications
You must be signed in to change notification settings - Fork 582
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
Package scan error when scanning pip 22.0.4 #2911
Comments
The culprit is the file below:
Here in the last line we have a
This purl less dependency causes the failure at dependency creation. @pombredanne what should be the approach here to fix this?
|
It does afaik. If not please submit a patch at https://github.com/nexB/pip-requirements-parser
This sounds the best approach. "dot" and editable requirements are not really something that can be processed further (pip-requirements-parser should provide all that is needed to determine which is which)
in all cases this should not crash. IMHO we should skip the one record that failed to be assembled in a Depdency and add an error in the general case. But a "dot" should not be an error as this should not error out at all. |
So pip-requirements-parser does have a flag
There are two places where we can drop this:
Should both be done here?
Doesn't errors in |
I downloaded pip 22.0.4 from https://files.pythonhosted.org/packages/33/c9/e2164122d365d8f823213a53970fa3005eb16218edcfc56ca24cb6deba2b/pip-22.0.4.tar.gz and I get the following error:
From a casual glance at https://github.com/nexB/scancode-toolkit/blob/develop/src/packagedcode/plugin_package.py#L265, it appears that we are getting this issue because some dependencies do not have purl values.
The text was updated successfully, but these errors were encountered: