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: