-
-
Notifications
You must be signed in to change notification settings - Fork 159
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
Can not use both rules_proto_grpc_python and rules_proto_grpc_java in the same project #341
Comments
This is due to a bug in a released version of grpc-java: grpc/grpc-java#11275 This project doesn't directly ever use the grpc-java repo, but it gets pulled transitively through googleapis -> grpc. Whilst there is a new version released that fixes this, you end up pulling the broken version due to googleapis not being updated to the fixed version. A temporary fix is to use a single_version_override(
module_name = "grpc-java",
version = "1.64.0",
) |
I added
|
Gah, I see this too. This is a different bug in yet another upstream dependency: protocolbuffers/protobuf#17176 This one has no simple workaround, as there is no fixed protobuf release available (let alone available in BCR)... |
I see that protocolbuffers/protobuf#17176 is resolved by PR protocolbuffers/protobuf#17402, that PR is merged into |
Is there a known workaround for using both rules_proto_grpc_python and rules_proto_grpc_java in the same project (even if it means only using WORKSPACE instead of MODULE.bazel)? |
I found an example usage that solves it: https://github.com/aalyria/api/blob/222064761c4a056cab59d45ca6006c6b2f403ed8/MODULE.bazel It uses several |
Issue Description
I'm migrating my project to from
WORKSPACE
toMODULE.bazel
, my project includes some grpc services written by both java and python, and I am usingrules_proto_grpc
v4.1.1, every work well. After migrating to bzlmod, I userules_proto_grpc
v5.0.0, first I userules_proto_grpc_python
for python services and they work, then I userules_proto_grpc_java
for java services but I got error:I notice that when I disable one of them, the other will work without any error, but when I enable both rules, I got above error message again
Here is my simple setup to reproduce the error: test_bazel.zip
bazel run //:python_binary
works butbazel run //:java_binary
throw error messageLog Output
rules_proto_grpc Version
5.0.0
Bazel Version
7.2.1
OS
MacOS
Link to Demo Repo
No response
MODULE.bazel or WORKSPACE Content
BUILD Content
Proto Content
Any Other Content
No response
The text was updated successfully, but these errors were encountered: