-
-
Notifications
You must be signed in to change notification settings - Fork 610
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
Unnecessary hard failure of pip-compile when a required package is already present in output with an unavailable version #1530
Labels
feature
Request for a new feature
Comments
AndydeCleyre
added a commit
to AndydeCleyre/pip-tools
that referenced
this issue
Nov 9, 2021
AndydeCleyre
added a commit
to AndydeCleyre/pip-tools
that referenced
this issue
Feb 8, 2022
The fix is still sitting in #1531, but I want to note here that the bug only seems to affect the legacy resolver, so using the backtracking resolver is a workaround until/unless the fix gets merged. |
AndydeCleyre
added a commit
to AndydeCleyre/pip-tools
that referenced
this issue
Nov 22, 2022
AndydeCleyre
added a commit
to AndydeCleyre/pip-tools
that referenced
this issue
Nov 22, 2022
Fixes jazzband#1530, the following case: When a needed package is already pinned in the output file, but has an invalid or at least unavailable version there, the compilation will fail. The logic change also: - doesn't bother building an ireq when we've got one already, from finding a match.
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was encountered in #1529
When a needed package is already pinned in the output file,
but has an invalid or at least unavailable version there,
the compilation will fail.
Environment Versions
3.9.5
21.3.1
6.4.0
Steps to replicate
Expected result
I'd expect that the pre-existing content of the output file is considered "low priority" -- that if something there doesn't fit the needs of the input files, it will be discarded. In other words, it should ultimately behave in this case as if
certifi
isn't in the output file to begin with, and so generate a valid output file again.Actual result
The text was updated successfully, but these errors were encountered: