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: