-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
third_party/googleapis is missing from package #1065
Comments
Define "latest package" here? Is this in your vendor folder or something? |
What I mean is, I follow the instructions:
And when I try to generate:
The /grpc-gateway/third_party/googleapis files do not exist. |
Yes these files are not tracked by go since they are proto files. The recommendation is to manually include them in your repository. Alternatively you can use bazel which solves most of this. |
Okay, then the instructions on the website need to be corrected. They don't mention this step at all and I wasted a bunch of time trying to figure out what I was doing wrong. Plus, I think it's a silly decision since you can't use the grpc-gateway without them. Just makes everything harder for no reason. |
I'm sorry that the instructions were lacking in this case, would you be interested in contributing some better instructions to help the next person? I'd be happy to help you get a PR in. As for this being a "silly decision", it's unfortunately out of our hands, there's no way to track proto files with go modules. Maybe you know a better way? |
Okay, I didn't realize it was a technical limitation. I'll investigate. |
The directory in question could be made into a package so that it would be vendored accordingly. |
This is a very go-centric solution, and it is far from a standard approach to versioning protobuf. Unless it becomes more widespread in the community we're unlikely to follow this model. |
👍 |
I was able to resolve this by doing: That version number will change depending on what you have installed. |
I had the same problem Works fine for me! |
this is an ugly solution, and is turning me away from working with protobuf/grpc in general |
I have to admit is really hard to work with this sort of changes, each time I want to use it I have to invest time to fix it first :( pretty disappointed |
Hi everyone. We recently updated the repository to use buf to manage the protobuf dependencies, which should make this much easier. Have you tried going through the README recently? EDIT: Disclaimer: I work at buf. |
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
Current generation of protobuf stubs is hard and there's open issues around it: grpc-ecosystem/grpc-gateway#1065 grpc-gateway author and README suggest to use `buf` instead which intends to be a simpler and more reliable method of protobuf stub generation.
The third_party/googleapis has been removed from github.com/grpc-ecosystem/grpc-gateway/v2, and the solution for now is to get them included in etcd repo directly. Please refer to grpc-ecosystem/grpc-gateway#1065 (comment) In the future, we may consider to manage the protobuf dependencies using https://github.com/bufbuild/buf. Please see grpc-ecosystem/grpc-gateway#1065 (comment). Signed-off-by: Benjamin Wang <wachao@vmware.com>
The third_party/googleapis has been removed from github.com/grpc-ecosystem/grpc-gateway/v2, and the solution for now is to get them included in etcd repo directly. Please refer to grpc-ecosystem/grpc-gateway#1065 (comment) In the future, we may consider to manage the protobuf dependencies using https://github.com/bufbuild/buf. Please see grpc-ecosystem/grpc-gateway#1065 (comment). Signed-off-by: Benjamin Wang <wachao@vmware.com>
The third_party/googleapis has been removed from github.com/grpc-ecosystem/grpc-gateway/v2, and the solution for now is to get them included in etcd repo directly. Please refer to grpc-ecosystem/grpc-gateway#1065 (comment) In the future, we may consider to manage the protobuf dependencies using https://github.com/bufbuild/buf. Please see grpc-ecosystem/grpc-gateway#1065 (comment). Signed-off-by: Benjamin Wang <wachao@vmware.com>
The third_party/googleapis has been removed from github.com/grpc-ecosystem/grpc-gateway/v2, and the solution for now is to get them included in etcd repo directly. Please refer to grpc-ecosystem/grpc-gateway#1065 (comment) In the future, we may consider to manage the protobuf dependencies using https://github.com/bufbuild/buf. Please see grpc-ecosystem/grpc-gateway#1065 (comment). Added "./;" before all "option go_package". For example, Changed "option go_package = "google.golang.org/genproto/googleapis/rpc/code;code";" to "option go_package = "./;google.golang.org/genproto/googleapis/rpc/code;code";" Refer to techschool/pcbook-go#3 (comment) Signed-off-by: Benjamin Wang <wachao@vmware.com>
The third_party/googleapis has been removed from github.com/grpc-ecosystem/grpc-gateway/v2, and the solution for now is to get them included in etcd repo directly. Please refer to grpc-ecosystem/grpc-gateway#1065 (comment) In the future, we may consider to manage the protobuf dependencies using https://github.com/bufbuild/buf. Please see grpc-ecosystem/grpc-gateway#1065 (comment). Signed-off-by: Benjamin Wang <wachao@vmware.com>
Thanks to the unfair sanctions over people of Iran, |
I'm installing the latest packages. third_party/googleapis is missing from the package:
So I can't compile anything because it depends on those files existing:
The text was updated successfully, but these errors were encountered: