Skip to content

Commit

Permalink
Set BAZELISK_SHUTDOWN on Windows for incompatible change pipeline
Browse files Browse the repository at this point in the history
Fixes #1012
  • Loading branch information
meteorcloudy committed Aug 10, 2020
1 parent e01ed36 commit 8375721
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions buildkite/bazelci.py
Original file line number Diff line number Diff line change
Expand Up @@ -1005,6 +1005,11 @@ def execute_commands(
# be smart and converts strings like "true" and "false" to booleans.
os.environ[key] = str(value)

# Set BAZELISK_SHUTDOWN to 1 when we use bazelisk --migrate on Windows.
# This is a workaround for https://github.com/bazelbuild/continuous-integration/issues/1012
if use_bazelisk_migrate() and platform == "windows":
os.environ["BAZELISK_SHUTDOWN"] = "1"

cmd_exec_func = execute_batch_commands if platform == "windows" else execute_shell_commands
cmd_exec_func(task_config.get("setup", None))

Expand Down

0 comments on commit 8375721

Please sign in to comment.