Open
Description
Hi! I'm on a journey to try to eradicate having bazel build protoc each time in favor of using prebuilt binaries. I'm really after kotlin, but it has a hard dependency on grpc-java and here I am.
https://github.com/aspect-build/toolchains_protoc has made some progress in that for regular proto generation, but it seems like grpc java generation still requires building protoc from source, plausibly to build the plugin. Looks like there're also precompiled plugin source distributed via source, but I don't see an easy way to switch to use them.
- Was there any work done in this area before? A quick issue search didn't come up with anything for me.
- Are there maybe any grpc-java specifics would make it hard (or impossible) to generate grpc java bindings without having to compile protoc?
- Seems like there's some toolchain-like functionality built into the grpc rules, but not quite a full-fledged toolchain that would allow override using precompiled binaries. Is there any documentation/guidance about intent for java_rpc_toolchain rule?
- Any other advice?
Hopefully patches are welcome. :)