Skip to content

Commit

Permalink
fix(console): self update didn't recognize Poetry's environment
Browse files Browse the repository at this point in the history
  • Loading branch information
finswimmer committed Jan 8, 2025
1 parent 4e8cdf0 commit 9d84ee3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/poetry/console/commands/self/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ def _system_project_handle(self) -> int:
add_command = application.find("add")
assert isinstance(add_command, AddCommand)
add_command.set_env(self.env)
add_command.set_poetry(self.poetry)
application.configure_installer_for_command(add_command, self.io)

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

0 comments on commit 9d84ee3

Please sign in to comment.