-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
google.protobuf.Empty import not generating properly #225
Labels
Comments
Can't reproduce. This is what I got from the steps you had shown. func request_TestService_PrintAuth_0(ctx context.Context, marshaler runtime.Marshaler, client TestServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq empty.Empty
var metadata runtime.ServerMetadata
msg, err := client.PrintAuth(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
} |
Could it be an issue with my libprotoc (v3.0.0)? I made sure to run go get -u on all the major packages (including github.com/golang/protobuf). |
@PranavSathy I don't think so. But it might be worth to reinstall the latest stable version of protoc just in case. |
This was referenced Apr 7, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi All, I have a very simple .proto file:
And I am compiling it using the two commands:
However, I get this weird issue in my "test_service.pb.gw.go" file, where it imports
github.com/golang/protobuf/ptypes/empty
but the handler produces the following lines of code:The issue there is is that
google_protobuf.Empty
should beempty.Empty
. How can I fix this, is there something in particular I am doing wrong?The text was updated successfully, but these errors were encountered: