-
-
Notifications
You must be signed in to change notification settings - Fork 611
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
pip-compile fails on unavailable irrelevant constraint #1178
Comments
Hello @clslgrnc, Thanks for the issue an the fix! Looks like |
@clslgrnc Thanks for this report - I think I've run into this today, maybe you would consider adding the following as a test case? Or could you confirm that your fix in #1175 will solve this issue? The reason I'm asking is because the The second reason I'm asking about this is because it might open the door to another way to solve #333 < I'm currently trying to install Example files
Current behaviourWith
☝️ That's the end of the output - there are no resolved dependencies listed. Expected behaviour
|
@jamescooke have you tried #1175? |
@atugushev No I've been lazy and just typed 😞 |
@atugushev I've given #1175 a go and it works well for the example above 🙌 - thanks @clslgrnc for your work on this 👍 Now using #1175, I can create an impossible constraint against an existing package with In this case, constraining with Example files
This is great because it's what I'm looking for - At this stage, if the resolver had increased search functionality then it might find the solution - but I'm not complaining 😊 ... We can get compilation to pass by pinning one of the sub-dependencies:
Now (with #1175) this compilation passes and we get a set of requirements for |
Cool! Thanks for the detailed feedback! 👍 |
Interesting use case @jamescooke thanks for the explanation. |
pip-compile tries to find a match for all constraints, event those that are not a requirement and come from a constraint file.
As a result if a constraints file defines a constraint on a package that is unavailable (be it a typo, a private lib on a currently unavailable repository, or a deprecated version no longer available) pip-compile won't work, even for requirements.in that will not need that package.
Steps to replicate
requirements.in:
constraints.txt:
Expected result
Actual result
This should be fixed by #1175
The text was updated successfully, but these errors were encountered: