You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test
|--test.proto
|--google (This directory is copied from /github.com/grpc-ecosystem/grpc-gateway/[email protected]/third_party/googleapis/google)
|--gen
|----go
When I run 【protoc -I . --grpc-gateway_out ./gen/go --grpc-gateway_opt logtostderr=true --grpc-gateway_opt paths=sourc
e_relative test.proto】, it is the same as the command in demo.
I failed and got an error message
> C:\Users\User\go\src\grpc\test>protoc -I . --grpc-gateway_out ./gen/go --grpc-gateway_opt logtostderr=true --grpc-gateway_opt paths=sourc
e_relative test.proto
google/protobuf/descriptor.proto: File not found.
google/api/annotations.proto:20:1: Import "google/protobuf/descriptor.proto" was not found or had errors.
google/api/annotations.proto:28:8: "google.protobuf.MethodOptions" is not defined.
test.proto:4:2: Import "google/api/annotations.proto" was not found or had errors.
The text was updated successfully, but these errors were encountered:
Hm, that should work, but this isn't really the right place for this sort of debugging, could you join our Slack channel (#grpc-gateway) on Gophers slack and I can help figure out what the problem is?
Directory Structure:
test
|--test.proto
|--google (This directory is copied from /github.com/grpc-ecosystem/grpc-gateway/[email protected]/third_party/googleapis/google)
|--gen
|----go
When I run 【protoc -I . --grpc-gateway_out ./gen/go --grpc-gateway_opt logtostderr=true --grpc-gateway_opt paths=sourc
e_relative test.proto】, it is the same as the command in demo.
I failed and got an error message
The text was updated successfully, but these errors were encountered: