From c7ab58234ba2cae22e00bc7fd473d6cfd72ae885 Mon Sep 17 00:00:00 2001 From: Mike Lundy Date: Tue, 7 Mar 2023 17:18:21 -0800 Subject: [PATCH] add missing env keyword in Env._run 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 --- 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: