Skip to content

poetry lock --no-update updates dependencies if custom source specified #6335

Description

@maxim-krikun
  • 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: Windows 10 (21H2)
  • Poetry version: 1.2.0
  • Link of a Gist with the contents of your pyproject.toml file:

Issue

Using Poetry 1.1.14 and lock file poetry_1.1.14.lock:

❯ poetry lock --no-update
Resolving dependencies...

The lock file remains unchanged. Then upgrade Poetry up to 1.2.0.
Using Poetry 1.2.0 and lock file poetry_1.1.14.lock:

❯ poetry lock --check
poetry.lock is consistent with pyproject.toml.
❯ poetry lock --no-update
Resolving dependencies...

Writing lock file

It produces a new lock file poetry_1.2.0.lock.
As you can see some versions of the dependencies have been updated.
That is, the changes were not only cosmetic.
I'd also like to note:

  • if you don't use a custom source (just remove source block from pyproject.toml and repeat repro steps), everything works as it should;
  • command for checking lock file returned a positive result. So there must be a bug somewhere, either in the check or in the locking.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions