-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
poetry lock
(no poetry.lock
) pins different versions than poetry update
#6470
Comments
The latest versions of all the packages that you've asked for are not compatible. In such cases it's a coin-flip whether you get recent Per #2883 (comment), IMO this is not a bug and if you care about the difference you can add an explicit requirement to say so. Anyway this is duplicate of lots of others, some still open: #2883, #3551, #3779, #4243 |
If it is a coin flip (I'm reading that as "random"), then why does I would expect the code paths to be equivalent and
What the heck, apparently my Google and GitHub searching wasn't effective (perhaps drowned out by a million other things having those keywords - how'd you find them again?). I'll close this one and chime in on others, but despite perhaps "not being a bug" in poetry, it caused a bug when a |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am on the latest Poetry version.
I have searched the issues of this repo and believe that this is not a duplicate.
If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).OS version and name: macOS Monterey
Poetry version: Poetry (version 1.2.0)
Contents of your pyproject.toml file:
pyproject.toml
Issue
With some sets of dependencies
poetry lock
andpoetry update
result in differentpoetry.lock
files with vastly different versions. Runningpoetry lock
without apoetry.lock
will pin some version (eg:coiled==0.0.56
), then an immediatepoetry update
will pick different versions (eg:coiled==0.2.27
), and then a subsequentpoetry lock
will pin the old version again (eg:coiled==0.0.56
).With the pyproject embedded above, I can reproduce this with:
Test script
I know I can set explicit version ranges in my
pyproject.toml
, but the instability also causes issues when different team members update deps withpoetry lock
vspoetry update
. Additionally, thelock
docs say:but this must not be true if a
poetry update
gives newer packages without erroring about any incompatibilities.The text was updated successfully, but these errors were encountered: