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

Non idempotent resolve via poetry lock and poetry update #3779

Closed
3 tasks done
DriverX opened this issue Mar 12, 2021 · 3 comments
Closed
3 tasks done

Non idempotent resolve via poetry lock and poetry update #3779

DriverX opened this issue Mar 12, 2021 · 3 comments
Labels
status/duplicate Duplicate issues

Comments

@DriverX
Copy link

DriverX commented Mar 12, 2021

  • 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:
$ uname -a
Linux a-ilyushenkov 4.19.121-linuxkit #1 SMP Thu Jan 21 15:36:34 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Poetry version:
$ poetry --version
Poetry version 1.1.5

Issue

Resolve operation in poetry lock and poetry update is not idempotent.
I have two dependencies in my pyproject.toml (see gist): idna and request.

poetry lock resolve

$ poetry lock && poetry install
Updating dependencies
Resolving dependencies... (8.0s)

Writing lock file
Installing dependencies from lock file

Package operations: 0 installs, 2 updates, 0 removals

  • Updating idna (2.10 -> 3.1)
  • Updating requests (2.25.1 -> 2.15.1)

poetry update resolve invariant

$ poetry update
Updating dependencies
Resolving dependencies... (1.9s)

Writing lock file

Package operations: 0 installs, 2 updates, 0 removals

  • Updating idna (3.1 -> 2.10)
  • Updating requests (2.15.1 -> 2.25.1)

More stranger the order of the dependencies matters. This spec poetry lock and poetry update resolve identically.

[tool.poetry.dependencies]
python = ">=3.6.5, <4"
requests = "*"
idna = "*"
  • Updating idna (2.10 -> 3.1)
  • Updating requests (2.25.1 -> 2.15.1)
@DriverX DriverX added kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Mar 12, 2021
@TBBle
Copy link
Contributor

TBBle commented Mar 16, 2021

Probably a duplicate of #3551. If not, then my comments on that issue belong here. But I'm pretty sure they're the same thing: "poetry update chooses a different "best resolution" when upgrading this requests/idna pairing".

The "order of dependencies" observation is probably highly relevant to the issue.

@dimbleby
Copy link
Contributor

As well as #3551 this is also a duplicate of #2883: and as in that issue I think this isn't a bug.

@neersighted neersighted added status/duplicate Duplicate issues and removed kind/bug Something isn't working as expected status/triage This issue needs to be triaged labels Sep 17, 2022
@neersighted neersighted closed this as not planned Won't fix, can't repro, duplicate, stale Sep 17, 2022
Copy link

github-actions bot commented Mar 1, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status/duplicate Duplicate issues
Projects
None yet
Development

No branches or pull requests

4 participants