Skip to content

Commit

Permalink
add missing env keyword in Env._run (#7626)
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 python-poetry#7623

(cherry picked from commit 4a27e8f)
  • Loading branch information
novas0x2a authored and radoering committed Mar 17, 2023
1 parent 0516ea5 commit aba7baf
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 aba7baf

Please sign in to comment.