Commit 81d94796 by Mathieu Kniewallner Committed by Bjorn Neergaard

fix(installer): default `force` to `False` in `_write_lock_file`

parent 5fce9d52
......@@ -337,7 +337,7 @@ class Installer:
# Execute operations
return self._execute(ops)
def _write_lock_file(self, repo: Repository, force: bool = True) -> None:
def _write_lock_file(self, repo: Repository, force: bool = False) -> None:
if force or (self._update and self._write_lock):
updated_lock = self._locker.set_lock_data(self._package, repo.packages)
......
......@@ -122,8 +122,6 @@ def test_remove_installed_package_dry_run(
Updating dependencies
Resolving dependencies...
Writing lock file
Package operations: 0 installs, 0 updates, 1 removal
• Removing poetry-plugin (1.2.3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment