Repository navigation
protobuf: Switch to canonical prebuilt protoc toolchain - #46570
Conversation
|
CC @envoyproxy/dependency-shepherds: Your approval is needed for changes made to |
238b341 to
84bf49c
Compare
| """Protobuf toolchain helpers for consuming the registered prebuilt protoc. | ||
|
|
||
| The `//bazel/private:proto_toolchain_type` target itself has | ||
| `visibility = ["//visibility:public"]`; what is private and must not be |
There was a problem hiding this comment.
yeah, in the twighlight zone
| # //bazel:proto_toolchain.bzl instead. | ||
| native_binary( | ||
| name = "protoc", | ||
| src = select({ |
There was a problem hiding this comment.
//bazel:darwin_arm64 and //bazel:darwin_x86_64, which are defined with values = {"cpu": "darwin_arm64"} style. This is the legacy mechanism and may not match correctly under --platforms-based builds. The Linux config_settings use constraint_values, which is the modern approach. This is a pre-existing issue (not introduced by this PR), but it could cause the select to fall through to //conditions:default on macOS in platforms-based builds, compiling protoc from source instead of using the prebuilt binary.
| # An arbitrary version of protobuf that includes pre-built binaries. | ||
| # See /examples/example_without_cc_toolchain which uses this for testing. | ||
| # TODO: add some automation to update this version occasionally. | ||
| -_TEST_VERSION = "v33.0" |
There was a problem hiding this comment.
i need to check this - it was something the bot created and i missed when picking that boteration - will check
There was a problem hiding this comment.
and readded - turns out this was needed and these are badly named TEST_ - they are the actual hashes used for production
1b17e03 to
fe400b7
Compare
Signed-off-by: Ryan Northey <[email protected]>
No description provided.