Skip to content

Which Poetry version should contributors use for make lockfile-update-full? #348

Backlog

Description

@yutianjiang39

The contributor setup instructions say that Poetry 2 is not supported and show how to install Poetry 1.4.1. When I ran the command from the lockfile-update-full target with that version, I got:

$ poetry --version
Poetry (version 1.4.1)
$ poetry lock -n --regenerate
The option "--regenerate" does not exist

Is there a different command contributors should use to fully regenerate poetry.lock with Poetry 1.4.1, or is this Makefile target intended to be run with a different Poetry version?

Activity

  1. younghwan91 commented on Nov 24, 2026

    @younghwan91

    With Poetry 1.4.1 the full regeneration is the plain poetry lock -n, which is what make lockfile-update runs. --regenerate only exists in Poetry 2.0+, where poetry lock stopped updating locked versions by default. The two Makefile targets were written for the Poetry 2 behaviour:

    lockfile-update: ## Update poetry.lock
    poetry lock -n
    lockfile-update-full: ## Fully regenerate poetry.lock
    poetry lock -n --regenerate

    The flags map like this in Poetry 1.4.1 (the version that generated the current poetry.lock):

    Intent Poetry 1.4.1 Poetry 2.x (Makefile)
    refresh lock, keep pinned versions poetry lock -n --no-update poetry lock -n
    fully re-resolve to latest allowed poetry lock -n poetry lock -n --regenerate

    I checked both on a copy of the repo at 2fdb18f with Poetry 1.4.1. poetry lock -n --no-update left poetry.lock byte-identical. poetry lock -n re-resolved everything (for example requests 2.32.3 -> 2.32.5, eth-account 0.13.5 -> 0.13.7, pydantic 2.9.2 -> 2.13.5, plus new transitive packages). So on 1.4.1, make lockfile-update gives you the full regeneration, and there is no Makefile target for a no-update refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions