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. |
Hey there, this was an issue with the plugin we published to the Buf Schema Registry. We've pushed a fix, so if you could try again, that'd be great. You'll want to use at least v2.19.1 revision 2. Side note, the https://github.com/bufbuild/plugins repository is likely a better place to report issues with Generated SDKs. |
Oh halo, Thanks for the updates I'll check it later, I already had another solution that time so I'll try for the ideal solution from this update. Sorry to report the issue here; I thought those came from the grpc-gateway and didn't think about the plugin itself, soon I'll move there later if any. Anyway thanks 馃殌 |
馃悰 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: