Skip to content

Commit dfed61b

Browse files
authored
Fix BCR test module for Bazel 9 (#4503)
**What type of PR is this?** Bug fix **What does this PR do? Why is it needed?** Also run all tests against the latest release candidate for each major release to catch issues early. **Which issues(s) does this PR fix?** Work towards bazelbuild/bazel-central-registry#6402 **Other notes for review**
1 parent cdf4651 commit dfed61b

File tree

7 files changed

+118
-2607
lines changed

7 files changed

+118
-2607
lines changed

.bazelci/presubmit.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ matrix:
77
- windows
88
# Only BCR tests use all Bazel versions. Others use the default.
99
bazel:
10-
- 7.x
11-
- 8.x
10+
- 7.*
11+
- 8.*
12+
- 9.*
1213

1314
tasks:
1415
debian11_bazel6:

.bcr/presubmit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ matrix:
44
- ubuntu2004_arm64
55
- macos_arm64
66
- windows
7-
bazel: [7.x, 8.x]
7+
bazel: [7.*, 8.*, 9.*]
88
tasks:
99
verify_targets:
1010
name: Verify build targets
@@ -20,7 +20,7 @@ bcr_test_module:
2020
- ubuntu2004_arm64
2121
- macos_arm64
2222
- windows
23-
bazel: [7.x, 8.x]
23+
bazel: [7.*, 8.*, 9.*]
2424
tasks:
2525
run_test_module:
2626
name: Run test module

tests/bcr/.bazelversion

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
1079973bd513b69fb56becc7fe678c03449b30c3
2-
# A commit on the 8.5.0 release branch with support for facts.
3-
# TODO: Update to 8.5.0 when released.
1+
9.0.0rc1

tests/bcr/MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ local_path_override(
2121
bazel_dep(name = "gazelle", version = "0.36.0")
2222
bazel_dep(name = "platforms", version = "1.0.0")
2323
bazel_dep(name = "protobuf", version = "29.0-rc2.bcr.1")
24+
bazel_dep(name = "rules_cc", version = "0.0.17")
2425
bazel_dep(name = "rules_shell", version = "0.4.1")
2526

2627
# Required with --incompatible_enable_proto_toolchain_resolution.

tests/bcr/MODULE.bazel.lock

Lines changed: 107 additions & 2600 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/bcr/other_module/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
load("@rules_cc//cc:cc_binary.bzl", "cc_binary")
2+
load("@rules_cc//cc:cc_import.bzl", "cc_import")
3+
14
package(default_visibility = ["//visibility:public"])
25

36
exports_files(["bar.txt"])
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module(name = "other_module")
22

3+
bazel_dep(name = "rules_cc", version = "0.0.17")
34
bazel_dep(name = "rules_go", version = "")
45

56
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")

0 commit comments

Comments
 (0)