grpc / grpc-java

The Java gRPC implementation. HTTP/2 based RPC
https://grpc.io/docs/languages/java/
Apache License 2.0
11.27k stars 3.79k forks source link

Support --incompatible_enable_proto_toolchain_resolution #11152

Open kusaeva opened 2 months ago

kusaeva commented 2 months ago

Is your feature request related to a problem?

The problem is need to compile protoc instead of using prebuilt binary while building java_grpc_library

Describe the solution you'd like

Support --incompatible_enable_proto_toolchain_resolution bazel flag so users can override protoc compiled from sources with prebuilt binary, as already done in rules_python or WIP in rules_go

Describe alternatives you've considered

Additional context

Examples of declarations toolchains for other languages that already support the feature here

kannanjgithub commented 2 months ago

Feel free to raise a PR for this.