Skip to content

Commit 4a27e8f

Browse files
authored
add missing env keyword in Env._run (#7626)
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
1 parent 40061f9 commit 4a27e8f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/poetry/utils/env.py

+1
Original file line numberDiff line numberDiff line change
@@ -1533,6 +1533,7 @@ def _run(self, cmd: list[str], **kwargs: Any) -> int | str:
15331533
stderr=stderr,
15341534
input=encode(input_),
15351535
check=True,
1536+
env=env,
15361537
**kwargs,
15371538
).stdout
15381539
elif call:

0 commit comments

Comments
 (0)