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

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

Closed
vctqs1 opened this issue Oct 24, 2019 · 5 comments

Comments

@vctqs1
Copy link

vctqs1 commented Oct 24, 2019

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.

@johanbrandhorst
Copy link
Collaborator

#1065 (comment)

@vctqs1
Copy link
Author

vctqs1 commented Oct 24, 2019

# 1065 (bình luận)

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

@johanbrandhorst
Copy link
Collaborator

@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
Copy link
Author

vctqs1 commented Oct 24, 2019

@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

@aviddiviner
Copy link

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.

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

3 participants