From aba7bafcf00e41cd21ff29cec43c524961635384 Mon Sep 17 00:00:00 2001 From: Mike Lundy Date: Fri, 17 Mar 2023 10:44:51 -0700 Subject: [PATCH] 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 (cherry picked from commit 4a27e8fcad8ceaa88101ae7bfd718f4e1a4e9439) --- src/poetry/utils/env.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/poetry/utils/env.py b/src/poetry/utils/env.py index 8d897fd2ac9..d5755d152c3 100644 --- a/src/poetry/utils/env.py +++ b/src/poetry/utils/env.py @@ -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: