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
When NOT using protobuf APIv2, I can't rely on the google.golang.org/genproto package for the protoc-compiled version of the annotations.proto, http.proto, and httpbody.proto files. Since I'm using grpc, I'm forced to APIv1 for now, which means I need to compile them myself.
Hi, thanks for your issue. You should be able to depend on an older version of google.golang.org/genproto and not have to generate files from our third_party package. We don't intend to support this use case. I personally use the grpc-gateway with APIv1 and never had to generate from these files, they're only there so that your proto imports can be resolved.
Steps you follow to reproduce the error:
protoc --proto_path . --go_out=Mgoogle/protobuf/descriptor.proto=github.com/golang/protobuf/protoc-gen-go/descriptor:. google/api/*.proto
Simple fix is to adjust the go_package line in httpbody.proto to match the go_package of the other two protos in google/api
The text was updated successfully, but these errors were encountered: