-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logic/grpc/api.proto编译失败,请教一下如何配置才能编译成功 #332
Comments
可以在GOPATH看看有没有github.com/gogo/protobuf/gogoproto目录不呢 |
➜ grpc git:(master) ✗ ls $GOPATH/src/github.com/gogo/protobuf/gogoproto |
可以把gogoproto clone到$GOPATH/src/github.com/gogo/protobuf/gogoproto/,或者直接使用kratos tool protoc api.proto |
我是在 goim/api/logic/grpc 目录下, 保证GOPATH 下有gogo/protobuf |
protoc api.proto --go_out=./ --proto_path=../../comet/grpc:$GOPATH/src/github.com/gogo/protobuf/gogoproto/:$GOPATH/src/google/protobuf/
github.com/gogo/protobuf/gogoproto/gogo.proto: File not found.
api.proto:6:1: Import "github.com/gogo/protobuf/gogoproto/gogo.proto" was not found or had errors.
The text was updated successfully, but these errors were encountered: