-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
Using the new Go gRPC generator results in compilation errors #2517
Comments
See grpc-ecosystem/grpc-gateway#1419 for an example of this |
grpc-ecosystem/grpc-gateway#1419 looks like a pretty big change. I won't be able to look at it in depth this week. Just taking a quick look though, the change to |
The BUILD file is generated by gazelle from the sources in the directory. Do you think I need to add some exclusion rules? |
I tried adding some exclusion rules to remove the suspicious sources and I get the same error. I'll work on a minimal example instead, sorry I didn't mean for you to actually look at the diff. I think this error will manifest itself anytime you try to use the new APIv2 generators together. |
Ah, I just saw this line:
I could see the error being because
Sidenote: do we need to add a compiler here for the new APIv2 compiler stack? |
Earlier, I tried changing both to It looks like |
Update: it is possible to workaround this issue by adding
And
The |
About excluding
|
We already have exclusions for the |
Sorry to sidetrack this, I will raise a gazelle issue instead. |
Also, you can change the |
What version of rules_go are you using?
This was tested against
Since I suspected 740ada9 would've fixed this like it did other APIv2 incompatibilities, but it has not.
What version of gazelle are you using?
v0.21.0
What version of Bazel are you using?
v3.2.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux amd64
What did you do?
Generate gRPC stubs using
google.golang.org/grpc/cmd/protoc-gen-go-grpc
, and protobuf stubs usinggoogle.golang.org/protobuf/cmd/protoc-gen-go
.What did you expect to see?
No compilation errors
What did you see instead?
Compilation errors for all gRPC services:
It compiles fine with
go build ./...
.The text was updated successfully, but these errors were encountered: