-
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
Cannot download 1.8.0 with modules #886
Comments
Argh, sorry about this. I figured this was working since the Go mod things we're running in CI didn't throw up any errors. Do you have any ideas for fixing this? |
Well, there is two things. First, is the question if the replace directive should propagate - I am not sure, as the go module documentation is not sufficiently clear about this (imo). However, I have a strong sense they don't. See the last paragraph here (emphasis by me):
So, as how to fix this.... The only thing I can think of then is to go search&replace and fix the import paths everywhere :/ Option B might be to use v2 of resty, but I have no insight of the state of that version (as its still in development). |
We've long discussed replacing the OpenAPI generator we use which is what is causing this import dependency - none of the runtime actually depends on resty. So that's another option. I'll try and work on this tomorrow and see what I can find. If this is blocking you right now and you find a solution, please open a PR and I'd be happy to review it. |
Thanks, no worries ;-) FYI, I totally forgot to mention how to workaround this, if someone is seriously blocked by this: As mentioned in linked resty issue above, you can use the same replace directive in your go.mod depending on grpc-gateway (either directly or indirectly). |
This was closed a bit prematurely, but please test https://github.com/grpc-ecosystem/grpc-gateway/releases/tag/v1.8.1-pre1 and see if that fixes it. Once someone has confirmed this is working I will prepare v1.8.1 proper and close this issue. |
I've confirmed this is working with both |
Well, I just tried to update my project's dependencies, and things broke apart.
Seems like its not possible to get grpc-gateway at the moment:
Steps you follow to reproduce the error:
FYI,
go get github.com/grpc-ecosystem/[email protected]
is just as broken.What did you expect to happen instead:
Work?
What's your theory on why it isn't working:
grpc-gateway is using the wrong import path - its seems the replace directive in go.mod does not propagate properly?
https://github.com/go-resty/resty#installation
go-resty/resty#230
Not directly related issue, but a discussion and reference for impact of "unexpected module path":
golang/lint#436
EDIT: I was a bit fast on naming the issue - please correct as seen fit.
The text was updated successfully, but these errors were encountered: