Skip to content

Commit 42bb79d

Browse files
committed
tests: skip workspace-specific examples for bazel 9
1 parent 60da4a3 commit 42bb79d

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.bazelci/presubmit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ buildifier:
4848
- "--noenable_bzlmod"
4949
- "--test_tag_filters=-integration-test"
5050
.common_workspace_flags: &common_workspace_flags
51+
skip_in_bazel_downstream_pipeline: "Bazel 9 doesn't support workspace"
5152
test_flags:
5253
- "--noenable_bzlmod"
5354
- "--enable_workspace"

examples/build_file_generation/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ build --enable_runfiles
55

66
# The bzlmod version of this example is in examples/bzlmod_build_file_generation
77
# Once WORKSPACE support is dropped, this example can be entirely deleted.
8-
build --experimental_enable_bzlmod=false
8+
build --experimental_enable_bzlmod=false --enable_workspace=true
99

1010
common:bazel7.x --incompatible_python_disallow_native_rules

examples/pip_parse_vendored/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ build --enable_runfiles
55

66
# Vendoring requirements.bzl files isn't necessary under bzlmod
77
# When workspace support is dropped, this example can be removed.
8-
build --noexperimental_enable_bzlmod
8+
build --noexperimental_enable_bzlmod --enable_workspace=true
99
common:bazel7.x --incompatible_python_disallow_native_rules

examples/pip_repository_annotations/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ try-import %workspace%/user.bazelrc
33

44
# This example is WORKSPACE specific. The equivalent functionality
55
# is in examples/bzlmod as the `whl_mods` feature.
6-
build --experimental_enable_bzlmod=false
6+
build --experimental_enable_bzlmod=false --enable_workspace=true
77
common:bazel7.x --incompatible_python_disallow_native_rules

examples/py_proto_library/.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# The equivalent bzlmod behavior is covered by examples/bzlmod/py_proto_library
2-
common --noenable_bzlmod
2+
common --noenable_bzlmod --enable_workspace=true
33
common:bazel7.x --incompatible_python_disallow_native_rules

0 commit comments

Comments
 (0)