helloworld-grpc-gateway
helloworld-grpc-gateway copied to clipboard
make generate: could not find protoc plugin for name openapiv2
What do I do and what is its result
$ make generate
# output
buf generate --path ./proto/helloworld/hello_world.proto
Failure: plugin openapiv2: could not find protoc plugin for name openapiv2
make: *** [generate] Error 1
I do it after
go get github.com/bufbuild/buf/cmd/buf
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
go get google.golang.org/grpc/cmd/protoc-gen-go-grpc
go get google.golang.org/protobuf/cmd/protoc-gen-go
What do I expect
This command generates necessary files)
System info
uname -a
Darwin Bla.local 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:25:27 PDT 2022; root:xnu-8020.141.5~2/RELEASE_X86_64 x86_64