https://pantsbuild.org/ logo
k

kind-laptop-72968

09/12/2018, 9:52 AM
Hello. I have a project where I would like to use grpc with go. I have protobuf models already. When I add services to the .proto files and run
./pants gen
I get valid output but without the services. After scanning the go documentation for grpc I saw that you need to use a protoc plugin to build the service definition like this taken from the go grpc quickstart
Copy code
$ protoc -I helloworld/ helloworld/helloworld.proto --go_out=plugins=grpc:helloworld
Is there any way to invoke these protoc plugins from pants? I have scanned through the options and advanced options for gen but am not finding anything useful.