-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Extra constraints are added during locking #2933
Comments
This is a super annoying artifact related to the dependency resolution implementation (which isn't implemented directly in pip, incidentally, so you can't fix it there) I have a fix for this which I already implemented upstream in It would be a super long shot to hope anyone would find that, it took roughly everyone involved in maintaining pip-tools to sort that out -- not to mention we also patch pip-tools like crazy in pipenv. As far as the issue, it's likely a clone of the many other resolution issues out there and is probably fixed by the PR I just put up :) |
Thanks a lot for your explanation. Awesome PR, let's see what happens after this PR is merged. 🎉 🎉 🎉 |
I'm too impatient to wait it being merged. I just tested it in my local forked branch, it works like a charm, at least for this issue. I will close this as soon as #2935 is merged. @techalchemy Thank you for the PR! 🤝 |
closes by #2935 |
Issue description
It happens for version from 2018.6.25. Version 2018.5.18 and older don't have this issue.
Following pipfile can not be locked. From the setup.py,
django-elasticsearch-dsl = "==0.5.0"
requireselasticsearch-dsl>=2.1.0,<7.0.0'
, andelasticsearch-dsl = "==5.0.0"
requires'elasticsearch>=5.0.0,<6.0.0'
. There should be no problem with locking.But pipenv add
elasticsearch<7.0.0,>=6.0.0
in the second round of locking, which is obviously wrong.There is something wrong with https://github.com/pypa/pipenv/blob/master/pipenv/patched/notpip/_internal/resolve.py. I tried to fix it, but the content of
requirement_set
in each run is not deterministic which make it hard to debug.Expected result
pipenv lock --clear
should work.Actual result
pipenv lock --clear
doesn't work and there is the verbose logs.The text was updated successfully, but these errors were encountered: