From c176607e56385c2117a00ea5c1bc7307d9774ece Mon Sep 17 00:00:00 2001 From: Mike Xu Date: Tue, 25 Jun 2024 14:47:54 -0700 Subject: [PATCH] Pin Bazel version to 6.x. The repo seems to have issues with Bazel 7, which is the default picked up for Bazelisk. Note: CI previously ran with Bazel 5, but Bazel 6 is needed for recent versions of rules_python. --- .bazelversion | 1 + cloudbuild.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .bazelversion diff --git a/.bazelversion b/.bazelversion new file mode 100644 index 00000000..8f0591a5 --- /dev/null +++ b/.bazelversion @@ -0,0 +1 @@ +6.x diff --git a/cloudbuild.yaml b/cloudbuild.yaml index 5e7446c6..5c329fce 100644 --- a/cloudbuild.yaml +++ b/cloudbuild.yaml @@ -34,7 +34,7 @@ steps: path: /root/.ssh # Run the build -- name: gcr.io/cloud-builders/bazel +- name: gcr.io/cloud-builders/bazel:6.4.0 entrypoint: 'bash' args: - '-c'