You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated gRPC code is different from the result of the protoc-gen-go-grpc plugin. By reading the rule definition, it seems that rules_go is using the deprecated grpc mode mode in proto-gen-go.
Currently I'm working around it with creating my own rule for the grpc-go proto compiler, but the official bazel rules should provide it.
What version of rules_go are you using?
0.29.0
What version of gazelle are you using?
0.24.0
What version of Bazel are you using?
4.2.1-homebrew
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
MacOS 12.0.1 Montery
Any other potentially useful information about your toolchain?
N/A
What did you do?
bazel build a proto with service defined and compiler using @io_bazel_rules_go//proto:go_grpc
What did you expect to see?
The generated code should have var <ServiceName>_ServiceDesc = ...
What did you see instead?
The generated code has var _<ServiceName>_ServiceDesc = ...
The text was updated successfully, but these errors were encountered:
tigersoldier
changed the title
Use grpc-go for gRPC compilers
Use protoc-gen-go-grpc for gRPC compilers
Dec 6, 2021
The generated gRPC code is different from the result of the protoc-gen-go-grpc plugin. By reading the rule definition, it seems that rules_go is using the deprecated grpc mode mode in proto-gen-go.
Currently I'm working around it with creating my own rule for the grpc-go proto compiler, but the official bazel rules should provide it.
What version of rules_go are you using?
0.29.0
What version of gazelle are you using?
0.24.0
What version of Bazel are you using?
4.2.1-homebrew
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
MacOS 12.0.1 Montery
Any other potentially useful information about your toolchain?
N/A
What did you do?
bazel build
a proto with service defined and compiler using@io_bazel_rules_go//proto:go_grpc
What did you expect to see?
The generated code should have
var <ServiceName>_ServiceDesc = ...
What did you see instead?
The generated code has
var _<ServiceName>_ServiceDesc = ...
The text was updated successfully, but these errors were encountered: