Skip to content

Commit 1f89d4f

Browse files
finswimmerabn
authored andcommitted
fix(console): self update didn't recognize Poetry's environment
1 parent 404aea5 commit 1f89d4f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/poetry/console/commands/self/update.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ def _system_project_handle(self) -> int:
4646
add_command = application.find("add")
4747
assert isinstance(add_command, AddCommand)
4848
add_command.set_env(self.env)
49+
add_command.set_poetry(self.poetry)
4950
application.configure_installer_for_command(add_command, self.io)
5051

5152
argv = ["add", f"poetry@{self.argument('version')}"]

0 commit comments

Comments
 (0)