Skip to content

Commit 81d9479

Browse files
mkniewallnerneersighted
authored andcommitted
fix(installer): default force to False in _write_lock_file
1 parent 5fce9d5 commit 81d9479

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/poetry/installation/installer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ def _do_install(self, local_repo: Repository) -> int:
337337
# Execute operations
338338
return self._execute(ops)
339339

340-
def _write_lock_file(self, repo: Repository, force: bool = True) -> None:
340+
def _write_lock_file(self, repo: Repository, force: bool = False) -> None:
341341
if force or (self._update and self._write_lock):
342342
updated_lock = self._locker.set_lock_data(self._package, repo.packages)
343343

tests/console/commands/plugin/test_remove.py

-2
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ def test_remove_installed_package_dry_run(
122122
Updating dependencies
123123
Resolving dependencies...
124124
125-
Writing lock file
126-
127125
Package operations: 0 installs, 0 updates, 1 removal
128126
129127
• Removing poetry-plugin (1.2.3)

0 commit comments

Comments
 (0)