Commit a580e32
Support Bazel 9
Bazel 9 removed native C++ rules from the global namespace by default
(native.cc_binary, native.cc_library). Two gRPC 1.76.0 bundled files
still use these:
- bazel/cython_library.bzl uses native.cc_binary
- third_party/address_sorting/address_sorting.bzl uses native.cc_library
Use --incompatible_autoload_externally=+cc_library,+cc_binary to restore
the autoload for those rules. This flag is a no-op in Bazel 7/8 where
the rules remain native.
Also:
- Bump re2 to 2025-11-05.bcr.1 (BCR grpc 1.76.0 pulls in re2
2024-07-02.bcr.1 whose BUILD uses cc_test without load(), which is
another Bazel 9 error; the 2025-11-05 release fixes that).
- Remove the <9.0.0 upper bound from bazel_compatibility.
- Update .bazelversion to 9.0.0.
- Add 9.x to the CI matrix and remove the "once we support Bazel 9" TODO.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 1833d12 commit a580e32
File tree
5 files changed
+21
-8
lines changed- .github/workflows
- bazel/example/using-bzlmod
5 files changed
+21
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
| 24 | + | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 5 | + | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
| |||
19 | 15 | | |
20 | 16 | | |
21 | 17 | | |
| 18 | + | |
22 | 19 | | |
23 | 20 | | |
24 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
0 commit comments