Open Asalle opened 3 years ago
i run this command,and it's solved.
go get github.com/golang/protobuf/protoc-gen-go
@hi-horan in the readme of https://github.com/golang/protobuf/
you can see that it has been superseeded by google.golang.org/protobuf
which causes the effect above.
May help to update the example. This should work
protoc:
version: 3.11.0
lint:
group: uber2
generate:
go_options:
import_path: github.com/me/helloworldgov1/gen
plugins:
- name: go
type: go
output: ../gen/go
- name: go-grpc
type: go
output: ../gen/go
Prerequisites:
Steps to reproduce:
prototool generate <directory>
Expected results: Generated protocols.
Actual result:
9 times, I assume it's the number of files in the previously mentioned
<directory>
.Possible explanation It seems that
protoc-gen-go
does not support plugins since v1.2 link.Is there a way to use the new
protoc-gen-go-grpc
binary with prototool?