Skip to content

Commit

Permalink
Prevent bazel query commands to change Bzlmod lockfile.
Browse files Browse the repository at this point in the history
So that failures bazelbuild/bazel@d3c3c5d addresses can be caught in presubmit.
  • Loading branch information
meteorcloudy authored Nov 16, 2023
1 parent 18a74f0 commit 5f00e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildkite/bazelci.py
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ def calculate_targets(
output = execute_command_and_get_output(
[bazel_binary]
+ common_startup_flags()
+ ["--nosystem_rc", "--nohome_rc", "query", index_targets_query],
+ ["--nosystem_rc", "--nohome_rc", "query", "--lockfile_mode=off", index_targets_query],
print_output=False,
)
index_targets += output.strip().split("\n")
Expand Down Expand Up @@ -2236,6 +2236,7 @@ def expand_test_target_patterns(bazel_binary, test_targets, test_flags):
"--nosystem_rc",
"--nohome_rc",
"cquery" if os.getenv("EXP_USE_CQUERY") else "query",
"--lockfile_mode=off",
get_test_query(test_targets, test_flags),
],
print_output=False,
Expand Down

0 comments on commit 5f00e05

Please sign in to comment.