poetry update --without=dev changes dev dependency versions in lockfile
#10513
Replies: 1 comment
|
You are seeing two different scopes in the same command: the lock-file resolution and the environment operations. In Poetry 2.1.3, So, for this command, If you need unrelated dev packages to remain locked, name the main packages you actually want to update: poetry update requests flaskOr separate locking from installation: poetry update requests flask --lock
poetry sync --without devThere is no group-wide “update every main package while freezing every dev package” selector in 2.1.3. Also, if a main and dev dependency share transitive dependencies, the solver may still have to adjust shared entries to keep one consistent lock graph. |
Uh oh!
There was an error while loading. Please reload this page.
I have a project with main and dev dependencies.
I want to run
poetry update --without=devto update all my main dependencies, but not those in thedevgroup.When I run this command, only the main ones have a new version installed, but both main and dev dependencies are changed to a new version in
poetry.lock.This leads to the
devdependencies getting updated later unintentionally (e.g. when runningpoetry sync).I would expect this command to not change the version of
devdependencies in the lock file. Given the--withoutoption is documented asIs this a bug? or an oversight of the documentation?
All reactions