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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buf - Wrong import in grpcgateway #3801
Comments
Hi, thanks for your issue. I'm not entirely sure what's going on here - you're saying that the import that's generated by the Buf SDK remote generation is wrong? I don't see any generated files in the repo you linked, so I assume there's something that's going wrong with the remote packages. Have you tried asking for help on the Buf slack? There might be an issue with the gateway but I can't really see it from what you've shared. |
The same issue happened in my case as well. Having two services structured as
I was using the generated SDK for grpc-gateway (plugin version 2.19.1). Initially, when I created the module only I noticed that in the generated grpc-gateway under Though, this happens only if I use buf.build generated SDKs. If I use buf generate myself with my own buf.gen.yaml everything is fine. |
馃悰 Bug Report
GRPC Gateway generates the wrong grpc import, so when I do
go run .
the error occursTo Reproduce
(Write your steps here:)
go get
to get the BSR generated SDKExpected behavior
Actual Behavior
Your Environment
OS: Windows 11
Go Version: go1.21.0 windows/amd64
Buf Version (local): 1.27.0
Buf Version (Github Action): latest
The text was updated successfully, but these errors were encountered: