Closed psigen closed 3 months ago
An interesting indirectly related conversation about this topic on the python protoc generator. https://github.com/grpc/grpc/issues/14172
Here is the problem area of the code. Each source file gets actions.declare_file
called, but the protoc
call
is not guaranteed to generate files for every source file -- it appears the JS gRPC generator will omit generation of JS files for proto inputs that do not contain a service
definition.
Hi :) Closing due to being obsolescence — closure_grpc_web_library
was cleaned up #1138. Thanks for the discussion :)
It looks like the
closure_grpc_web_library()
bazel rule might not quite handle empty proto files correctly.I have created a mostly empty
.proto
file like so:order.proto
BUILD.bazel
When I run this, I get the following output:
I think this is because
protoc
does not create output for these blank files, but the bazel rule still declares them as a target. A simple solution might be totouch
the files to create empty placeholders before runningprotoc
.