Skip to content

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

Closed
terriko opened this issue Dec 21, 2022 · 3 comments · Fixed by #2476
Closed

Fail more gracefully when pip --dry-run doesn't work #2463

terriko opened this issue Dec 21, 2022 · 3 comments · Fixed by #2476

Comments

@terriko
Copy link
Contributor

terriko commented Dec 21, 2022

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)

@metabiswadeep
Copy link
Contributor

Could you please elaborate on what has to be done?

@terriko
Copy link
Contributor Author

terriko commented Dec 24, 2022

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.

@metabiswadeep
Copy link
Contributor

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?

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 a pull request may close this issue.

2 participants