-
Notifications
You must be signed in to change notification settings - Fork 535
Fail more gracefully when pip --dry-run doesn't work #2463
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
Comments
Could you please elaborate on what has to be done? |
Try downgrading pip and running cve-bin-tool (might also work if you turn off network access?) Basically, if your version of pip is too old it throws an exception when you run pip. We need it to throw an error instead. |
On downgrading pip and running cve-bin-tool it is showing "no such option: --dry-run" for pip. I guess older versions of pip do not support dry-run? |
If
pip --dry-run
(used for testing requirements.txt files) fails, the whole process halts. This is kind of a pain when I'm using cve-bin-tool to scan arbitrary github directories. We should probably do something similar to what we do with extraction, where it logs an error message and tells you what file it couldn't scan but does not raise an exception (which stops the scan entirely leaving you with only partial results)The text was updated successfully, but these errors were encountered: