From f5dafb8a6791c4679224cc7fcca061aabebdcce0 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Fri, 22 Nov 2024 11:28:31 +0100 Subject: [PATCH] Don't modify the environment when executing a CI command `os.environ` does not contain certain special environment variables on Windows (e.g. `=C:`) that are present when executing from `cmd.exe`. --- buildkite/bazelci.py | 1 - 1 file changed, 1 deletion(-) diff --git a/buildkite/bazelci.py b/buildkite/bazelci.py index 9a9be648f8..b554d672e4 100755 --- a/buildkite/bazelci.py +++ b/buildkite/bazelci.py @@ -2645,7 +2645,6 @@ def execute_command( args, shell=shell, check=fail_if_nonzero, - env=os.environ, cwd=cwd, errors="replace", stdout=(