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

Show warning for invalid packages #36

Closed
davidhesselbomvcc opened this issue May 4, 2021 · 4 comments
Closed

Show warning for invalid packages #36

davidhesselbomvcc opened this issue May 4, 2021 · 4 comments

Comments

@davidhesselbomvcc
Copy link

davidhesselbomvcc commented May 4, 2021

Given the requirements file req.txt, with the following contents:

non-existent-package

The command

pip install -r req.txt produces the following output:

ERROR: Could not find a version that satisfies the requirement non-existent-package (from -r req.txt (line 1)) (from versions: none)
ERROR: No matching distribution found for non-existent-package (from -r req.txt (line 1))

However, pur -f -r req.txt (version 0.5.4) just says All requirements up-to-date. and exits with code 0. I'd say this is a bug?

@alanhamlett alanhamlett changed the title No error when package is not found - bug? Show warning for invalid packages May 4, 2021
@davidhesselbomvcc
Copy link
Author

davidhesselbomvcc commented May 5, 2021

@alanhamlett Does the new title you set for this issue mean that you intend to keep exiting with code 0 when this happens, even when a warning is issued?

@alanhamlett
Copy link
Owner

Yes, we can add a new flag to exit non-zero but by default I don't want to start exiting with an error when it wasn't doing that previously.

@davidhesselbomvcc
Copy link
Author

Yes, we can add a new flag to exit non-zero but by default I don't want to start exiting with an error when it wasn't doing that previously.

Fair enough

@alanhamlett
Copy link
Owner

Implemented with e11bae6 and released in v7.2.0.

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

No branches or pull requests

2 participants