-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
fails on clean environment
#731
Comments
Can you retry this? We think this might be fixed already. See #730 and #712 (comment) |
Also the backup fix for this is just to merge #730 |
I've just ran this test case and this has worked for me. I also see no issue on the CI here. Please reopen if you still see issues you directly correlate to the quoted commit. |
I just got this with v1.5.0. Is it fixed somewhere else? |
It should definitely be fixed. What exact error are you getting? You may need to update other repos in your gopath |
This is using go1.11 outside of my gopath.
|
Yeah we're working on go.mod support, we're not quite there yet. Could you open an issue for go mod support? |
hi there, I have this one :
I am doing this : GRPC_GATEWAY_REPO=github.com/grpc-ecosystem/grpc-gateway
go get -d $(GRPC_GATEWAY_REPO)/...
cd $(GOPATH)/src/$(GRPC_GATEWAY_REPO) && git checkout tags/v1.5.0
cd $(GOPATH)/src/$(GRPC_GATEWAY_REPO)/protoc-gen-grpc-gateway && go install
cd $(GOPATH)/src/$(GRPC_GATEWAY_REPO)/protoc-gen-swagger && go install my go version is :
FYI : running on OSX High Sierra v10.13.6 |
@Tommy-42 As far as I can tell, Not sure why the version you have would not include this. I have not looked into how vgo / go.mod works; does upstream need to tag their repo in some way? Why are you specifically checking out grpc-gateway v1.5.0? |
Getting the same issue when pulling the new version into a bazel build. |
What does that mean? Do we need to update some Bazel dependency versions? Why is CI passing 🤔? |
I believe it is related to you shipping a copy of the annotations.proto here: |
Can you clarify "the same"? How did you 'pull the new version in'?
Possible, but can you clarify what led you to believe this? In what significant way are the files different? Upstream has the
How would you use it? One still needs to pick an upstream version to lock onto and to download, for consistent builds, right? If we didn't lock onto it (whether by copying or specifying the exact version in It's also not without benefit to have a copy of the .proto file around in a nice and convenient well-known path, already cloned and usable by developers for |
In my bazel WORKSPACE file:
The uncommented version is the time of my PR and everything builds. When I swapp to the commented part (the merged PR), then I also get all the changes in between and now the build fail:
Somehow the build is picking up an outdated copy of the http.proto. I am digging deeper.
So the |
https://github.com/grpc-ecosystem/grpc-gateway/blob/844b78d9a291695a45d1d826fda9c1b95a2ddfc1/third_party/googleapis/google/api/http.proto
contains response_body, just as it should. It seems to be doing so in your
output as well:
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/grpc_ecosystem_grpc_gateway/third_party/googleapis/google/api/http.proto:303:
string response_body = 12;
No idea why Bazel would be picking the wrong proto when running protoc.
Sadly, this is not the same as the original bug report.
…On Tue 6 Nov 2018 at 15:46 Stefan Sauer ***@***.***> wrote:
In my bazel WORKSPACE file:
go_repository(
name = "grpc_ecosystem_grpc_gateway",
#commit = "844b78d9a291695a45d1d826fda9c1b95a2ddfc1",
#importpath = "github.com/grpc-ecosystem/grpc-gateway",
# TODO(ensonic): switch back after PR #644 has been merged
commit = "4e0ecd0f283a990d61c867c2e55635a11931e2aa",
importpath = "github.com/ensonic/grpc-gateway",
)
The uncommented version is the time of my PR and everything builds. When I
swapp to the commented part (the merged PR), then I also get all the
changes in between and now the build fail:
GoCompile: error running compiler: exit status 2
home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/sandbox/linux-sandbox/43/execroot/myproject/external/grpc_ecosystem_grpc_gateway/protoc-gen-grpc-gateway/descriptor/services.go:146:49: opts.ResponseBody undefined (type *annotations.HttpRule has no field or method ResponseBody)
Somehow the build is picking up an outdated copy of the http.proto. I am
digging deeper.
$ find home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/ -name "http.proto"
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/com_github_googleapis_googleapis/google/api/http.proto
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/go_googleapis/google/api/http.proto
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/grpc_ecosystem_grpc_gateway/third_party/googleapis/google/api/http.proto
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/bazel_source/third_party/googleapis/google/api/http.proto
$ find /home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/ -name "http.proto" -exec grep -Hn "response_body" {} \;
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/com_github_googleapis_googleapis/google/api/http.proto:355: string response_body = 12;
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/go_googleapis/google/api/http.proto:355: string response_body = 12;
/home/ensonic/.cache/bazel/_bazel_ensonic/556f802681b2087c6d9a6bcc3d0d954b/external/grpc_ecosystem_grpc_gateway/third_party/googleapis/google/api/http.proto:303: string response_body = 12;
So the bazel_source/third_party/googleapis/google/api/http.proto is too
old and for some reason it hit this one.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#731 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAdJnAn9xXPiovJLZTSx1IycN6ViiKj5ks5usa7MgaJpZM4WBwVQ>
.
|
I've discussed this with @ensonic out-of-band. It was a local (but interesting) issue with the |
SOLVED: We also imported |
Hi, I am facing this issue when I try to |
If you're getting this error, make sure you are using the latest available version of the http.proto file. |
This particular issue is long resolved. Unless it's related to the original issue related to I'll lock this issue. |
Steps you follow to reproduce the error:
docker run -it golang:1.10.3 bash
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
That fails with an error:
This commit is responsible for that: e679739
That just broke our master, and I see that the CI here isn't running as well on that commit.
The text was updated successfully, but these errors were encountered: