File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -201,6 +201,8 @@ def _do_refresh(self) -> int:
201
201
self ._io ,
202
202
)
203
203
204
+ # Always re-solve directory dependencies, otherwise we can't determine
205
+ # if anything has changed (and the lock file contains an invalid version).
204
206
use_latest = [
205
207
p .name for p in locked_repository .packages if p .source_type == "directory"
206
208
]
Original file line number Diff line number Diff line change @@ -179,6 +179,12 @@ def test_lock_no_update_path_dependencies(
179
179
poetry_with_nested_path_deps_old_lockfile : Poetry ,
180
180
repo : TestRepository ,
181
181
):
182
+ """
183
+ The lock file contains a variant of the directory dependency "quix" that does
184
+ not depend on "sampleproject". Although the version of "quix" has not been changed,
185
+ it should be re-solved because there is always only one valid version
186
+ of a directory dependency at any time.
187
+ """
182
188
repo .add_package (get_package ("sampleproject" , "1.3.1" ))
183
189
184
190
locker = Locker (
You can’t perform that action at this time.
0 commit comments