From bf5079635fd2da9b8e7941f4d252d1714d23aba3 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 14 Feb 2024 18:13:56 -0500 Subject: [PATCH] Update Bazel to v7.0.2. (#223) Disable Bzlmod until we migrate to MODULE.bazel. Signed-off-by: Piotr Sikora --- .bazelrc | 3 +++ .bazelversion | 2 +- .github/workflows/rust.yml | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.bazelrc b/.bazelrc index d1dc477e..4d3ac923 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,2 +1,5 @@ +# Disable Bzlmod +common --noenable_bzlmod + # Force Bazel to use --target=wasm32-wasi build --platforms=@rules_rust//rust/platform:wasi diff --git a/.bazelversion b/.bazelversion index 024b066c..a8907c02 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -6.2.1 +7.0.2 diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 63cb2757..35cc2fa9 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -66,10 +66,10 @@ jobs: key: ${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.Bazel.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} - name: Build (wasm32-unknown-unknown) - run: bazelisk --noworkspace_rc build --platforms=@rules_rust//rust/platform:wasm //... + run: bazelisk --noworkspace_rc build --noenable_bzlmod --platforms=@rules_rust//rust/platform:wasm //... - name: Build (wasm32-wasi) - run: bazelisk --noworkspace_rc build --platforms=@rules_rust//rust/platform:wasi //... + run: bazelisk --noworkspace_rc build --noenable_bzlmod --platforms=@rules_rust//rust/platform:wasi //... - name: Format (buildifier) run: | @@ -80,7 +80,7 @@ jobs: - name: Format (rules_rust) run: | - bazelisk --noworkspace_rc run //bazel/cargo:crates_vendor + bazelisk --noworkspace_rc run --noenable_bzlmod //bazel/cargo:crates_vendor git diff --exit-code stable: