Skip to content

Commit

Permalink
Explicitly enable workspace when bzlmod is disabled in examples tests.
Browse files Browse the repository at this point in the history
Note in Bazel 8 --enable_workspace is now false by default, which is probably why  continuous tests fail when testing with bzlmod disabled: https://github.com/protocolbuffers/protobuf/actions/runs/12274024400/job/34246134153

`bazelversion` here also doesn't seem to be applied as Bazel 8 is being used based on the logs.

#test-continuous

PiperOrigin-RevId: 705140770
  • Loading branch information
zhangskz authored and copybara-github committed Dec 11, 2024
1 parent 494e28b commit b24c64a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test_bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }}
bazel-cache: examples
version: ${{ matrix.bazelversion }}
bash: cd examples && bazel build //... $BAZEL_FLAGS --enable_bzlmod=${{ matrix.bzlmod }} ${{ matrix.toolchain_resolution }}
bash: cd examples && bazel build //... $BAZEL_FLAGS --enable_bzlmod=${{ matrix.bzlmod }} --enable_workspace=${{ !matrix.bzlmod }} ${{ matrix.toolchain_resolution }}

0 comments on commit b24c64a

Please sign in to comment.