Commit da0077e
Use native.proto_library for Bazel 7 and explicitly error for Bazel 6 which is incompatible and out of support.
Reduces skew caused by Bazel 7 using bazel's cc_proto_library, protobuf's proto_library, and bazel's proto info which block changes e.g. cl/743679882
Pins `rules_proto` to `7.1.0` to avoid `Protocol compiler toolchain could not be resolved.` when `--incompatible_toolchain_resolution`. MODULE.bazel otherwise defaults to `rules_proto 7.0.2` (from other deps) which inconsistently uses bazel's toolchain_type but protobuf's toolchain. WORKSPACE otherwise defaults to `rules_proto 5.3.0-21.7` (from bazel) where `@rules_proto//proto:toolchain_type` referenced by Bazel 7 doesn't exist yet.
The final state is that toolchains from protobuf are used, instead of @rules_proto which forwards to protobuf after `rules_proto 6.0.0` to avoid breaking change requiring users to register toolchains from `rules_proto` for Bazel 7.
PiperOrigin-RevId: 7625712031 parent 1fd2906 commit da0077e
File tree
4 files changed
+26
-6
lines changed- .github/workflows
- bazel
4 files changed
+26
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
49 | 57 | | |
50 | 58 | | |
51 | 59 | | |
| |||
82 | 90 | | |
83 | 91 | | |
84 | 92 | | |
| 93 | + | |
85 | 94 | | |
86 | 95 | | |
87 | 96 | | |
| |||
227 | 236 | | |
228 | 237 | | |
229 | 238 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | 239 | | |
234 | 240 | | |
235 | 241 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | 67 | | |
58 | 68 | | |
| |||
0 commit comments