You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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: 762571203
0 commit comments