-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
area/solverRelated to the dependency resolverRelated to the dependency resolverkind/enhancementNot a bug or feature, but improves usability or performanceNot a bug or feature, but improves usability or performance
Description
- 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 (
-vvvoption). - OS version and name: MacOS 10.15.7
- Poetry version: 1.1.5
Issue
When using packages with the directory source type, I would expect that running poetry lock --no-update inside the package would update the poetry.lock file with changes for all directory packages being used.
The issue can be reproduced with:
poetry new lib
poetry new project
# project depends on lib (directory package)
cd project && poetry add ../lib
# lib is updated with a new dependency
cd ../lib && poetry add arrow
# we try to update the project with --no-update (we do not want to run poetry update that will update too much)
cd ../project
poetry lock --no-update
# the lock file is not updated correctly
grep arrow poetry.lock # lock file is not updated
To my knowledge the only workaround are:
poetry update(which naturally updates more than we want here – i.e. unrelated dependencies)poetry update <dir_package1> <dir_package2>...(cumbersome if you have a lot of directory packages – especially painful in a big mono repository)
I believe the suggested behavior makes sense for both editable and non-editable directory packages.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/solverRelated to the dependency resolverRelated to the dependency resolverkind/enhancementNot a bug or feature, but improves usability or performanceNot a bug or feature, but improves usability or performance