Buggy dependency resolution with poetry v2
#10237
Labels
area/solver
Related to the dependency resolver
impact/backport
Requires backport to stable branch
kind/bug
Something isn't working as expected
Description
My repo is here.
pytest
as atest
group dependency and generated a lock file.slash
as amain
dependency and regenerated the lock file.I am seeing a lot of differences between the lock files.
poetry v2
is not locking a lot of sub-dependencies.poetry v1
does this correctly. This looks like a major regression.To make comparison easier, I exported the lock files as
requirements.txt
files:poetry v1
:requirements.txt
test-requirements.txt
poetry v2
:requirements.txt
test-requirements.txt
poetry v2
completely noodled thetest
dependencies when addingslash
as a main dependency.On the other hand,
poetry v1
made no changes to thetest
dependencies whenslash
was added to themain
dependencies.The locked dependencies with
poetry v2
are also incorrect/incomplete for the same reasons.Workarounds
Keep using
poetry v1
.Poetry Installation Method
pip
Operating System
macOS
Poetry Version
2.1.1
Poetry Configuration
Python Sysconfig
sysconfig.log
Example pyproject.toml
Poetry Runtime Logs
poetry-runtime.log
logs.txt
The text was updated successfully, but these errors were encountered: