Protoc compilation error when building plugin

Hello,

I’m following the waypoint plugin tutorial (https://www.waypointproject.io/docs/extending-waypoint/creating-plugins) and receiving the following error when trying to build the gobuilder plugin:

Build Protos
protoc -I . --go_out=plugins=grpc:. --go_opt=paths=source_relative ./builder/output.proto
--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC
make: *** [protos] Error 1

This is the command that fails https://github.com/hashicorp/waypoint-plugin-examples/blob/main/template/Makefile#L17

It seems more of an issue with protoc or grpc but was wondering if anyone has run into this or knows how to fix it?

OS: MacOS 10.14.6
Go version: go1.14.3 darwin/amd64
protoc version: libprotoc 3.13.0

Thanks

Hi,

Did you install the latest go-grpc plugins?

go get -u github.com/golang/protobuf/protoc-gen-go 
go get -u google.golang.org/grpc/cmd/protoc-gen-go-grpc

I thought I did but I mustn’t have installed them correctly :man_facepalming: Works now after installing them in the plugin directory. Thanks for the help