You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure compatibility, I would like to understand which version of the poetry CLI is compatible with a given pyproject.toml which produced a poetry.lock.
Recently, this issue broke CI/CD pipelines for certain projects where the Poetry version that ended up being installed was 1.8 but the projects themselves were not updated to support that version. Thus, it would be a nice bonus if I could predetermine a compatible version of Poetry and install that version to manage a given Poetry project.
I do understand there are better solutions that can be implemented internally (e.g. only support a single Poetry version across all projects) but given the scale of the company (number of projects + developers), I figured it is worth reaching out here about this particular request.
Impact
When sharing projects, to ensure the same version of Poetry is used across users/CI/etc.
Workarounds
Could parse the first line of the poetry.lock file but that seems a brittle approach.
The text was updated successfully, but these errors were encountered:
writing a poetry version number into poetry.lock should not help your pipelines. Pipelines should be pinning the versions of tools such as poetry - not automatically taking the latest, but also not automatically taking whatever version the most recent committer used.
if you want to know what version of poetry produced a lockfile so that you as a developer can install a matching poetry - then reading the first line of poetry.lock seems just fine to me.
Issue Kind
Brand new capability
Description
To ensure compatibility, I would like to understand which version of the
poetry
CLI is compatible with a givenpyproject.toml
which produced apoetry.lock
.Recently, this issue broke CI/CD pipelines for certain projects where the Poetry version that ended up being installed was
1.8
but the projects themselves were not updated to support that version. Thus, it would be a nice bonus if I could predetermine a compatible version of Poetry and install that version to manage a given Poetry project.I do understand there are better solutions that can be implemented internally (e.g. only support a single Poetry version across all projects) but given the scale of the company (number of projects + developers), I figured it is worth reaching out here about this particular request.
Impact
When sharing projects, to ensure the same version of Poetry is used across users/CI/etc.
Workarounds
Could parse the first line of the
poetry.lock
file but that seems a brittle approach.The text was updated successfully, but these errors were encountered: