Skip to content
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

reverse gateway file not getting generated (.pb.gw.go) not getting generated no error just warning #1530

Closed
gautam-shipt opened this issue Jul 16, 2020 · 1 comment

Comments

@gautam-shipt
Copy link

Hi Team
I am trying to use the REST proxy with my Grpc service .. here is what my Proto file looks likes
syntax = "proto3";

Proto file = healthcheck.proto

package main;
option go_package = "./proto-gen;proto_gen";
import "google/api/annotations.proto";

service HealthV1 {
  rpc Check(HealthCheckRequest) returns (HealthCheckResponse) {
    option (google.api.http) = {
      get: "/api/v1/healthcheck"
    };
  };
}

message HealthCheckRequest {}

message HealthCheckResponse {}

I am using the following to generate the files

Reverse proxy Gateway generation
protoc -I. -I proto/ -I ${GOPATH}/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true,paths=source_relative:../proto-gen proto/healthcheck.proto
ERROR

WARNING: Package "github.com/golang/protobuf/protoc-gen-go/generator" is deprecated.
A future release of golang/protobuf will delete this package,
which has long been excluded from the compatibility promise.

the proto compiler is not generating the expected reverse proxy file (healthcheck.pb.gw.go)

protoc version libprotoc 3.12.3

@johanbrandhorst
Copy link
Collaborator

Could you join the support channel #grpc-gateway on Gophers slack for support questions like this? This isn't a great forum for it. I'm going to close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants