Skip to content

Commit

Permalink
add missing env keyword in Env._run
Browse files Browse the repository at this point in the history
The env keyword contains the modified path (that uses get_temp_environ)
so without it, anything using the `input` path here would get the wrong
env.

fixes #7623
  • Loading branch information
novas0x2a committed Mar 8, 2023
1 parent 40061f9 commit 14b7136
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/poetry/utils/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -1533,6 +1533,7 @@ def _run(self, cmd: list[str], **kwargs: Any) -> int | str:
stderr=stderr,
input=encode(input_),
check=True,
env=env,
**kwargs,
).stdout
elif call:
Expand Down

0 comments on commit 14b7136

Please sign in to comment.