Grpc-gateway: grpc-ecosystem/grpc-gateway/third_party/googleapis: warning: directory does not exist.

Created on 24 Oct 2019  路  5Comments  路  Source: grpc-ecosystem/grpc-gateway

ENV: MacOS

protoc -I/usr/local/include -I. \ -I$GOPATH/src \ -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \ --go_out=plugins=grpc:pkg/api \ api/*.proto

ERROR:
oogle/api/annotations.proto: File not found.
product.proto: Import "google/api/annotations.proto" was not found or had errors.
/Users/macbookpro/Go/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis: warning: directory does not exist.
google/api/annotations.proto: File not found.

Most helpful comment

@vctqs1 I gave you a short answer because you ignored the helpful instructions in the issue template which ask you to come to the Gophers slack and ask for help if you're having problems getting started. This issue tracker is not useful for this kind of debugging and assistance.

In this case, maybe try starting with https://github.com/johanbrandhorst/grpc-gateway-boilerplate which has everything set up for you. If you still need help, join the gophers slack.

I installed it according to the instructions but this is still not effective
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger go get -u github.com/golang/protobuf/protoc-gen-go

All 5 comments

# 1065 (b矛nh lu岷璶)

Can you give me example for this situation?. I'm new member.

@vctqs1 I gave you a short answer because you ignored the helpful instructions in the issue template which ask you to come to the Gophers slack and ask for help if you're having problems getting started. This issue tracker is not useful for this kind of debugging and assistance.

In this case, maybe try starting with https://github.com/johanbrandhorst/grpc-gateway-boilerplate which has everything set up for you. If you still need help, join the gophers slack.

@vctqs1 I gave you a short answer because you ignored the helpful instructions in the issue template which ask you to come to the Gophers slack and ask for help if you're having problems getting started. This issue tracker is not useful for this kind of debugging and assistance.

In this case, maybe try starting with https://github.com/johanbrandhorst/grpc-gateway-boilerplate which has everything set up for you. If you still need help, join the gophers slack.

I installed it according to the instructions but this is still not effective
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger go get -u github.com/golang/protobuf/protoc-gen-go

I was able to resolve this by doing:
-I=$GOPATH/pkg/mod/github.com/grpc-ecosystem/[email protected]/third_party/googleapis

That version number will change depending on what you have installed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rexlv picture rexlv  路  3Comments

yearm picture yearm  路  3Comments

dong77 picture dong77  路  4Comments

tamalsaha picture tamalsaha  路  3Comments

fifthaxe picture fifthaxe  路  5Comments