-
Notifications
You must be signed in to change notification settings - Fork 383
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
wanted: com_google_protobuf #320
Comments
Actually I'm working on this. What's missing is rules_kotlin. |
@comius Do we also have someone from the protobuf team looking into supporting Bzlmod? |
I'm actually also working on this but I'm facing the following error:
I tried to add the following in my WORKSPACE.bzlmod:
but so far it doesn't work. That seems to be related to bazelbuild/rules_kotlin#597 and this bazelbuild/rules_kotlin#602 but I'm not sure right now about how to solve this. If anyone has any idea, i would be interested. |
It looks like you are using an old version of Bazel, can you try again with the latest 6.0 rc? If it still doesn't work, please try to file an issue to https://github.com/bazelbuild/rules_jvm_external and provide a reproducible case. |
@meteorcloudy 4.5 seems to be the version available on: Bazel Central Register and on Github, isn't it ? Anyway, I moved to bazelisk and version 6.0.0rc4 and I have another error:
I opened an issue on the rules_kotlin repository (issue) |
Yes, that's the latest rules_jvm_external version. You'll also need to the latest bazel version ;) With Bzlmod, we have stricter repository name validation, probably some repo name needs to be fixed in rules_kotlin. |
But can you remove the rules_kotlin dependencies in WORKSPACE.bzlmod, I don't see why fixing protobuf needs rules_kotlin to work. |
When I remove the rules_kotlin, I have this error:
we actually need rules_kotlin because in the java/kotlin and kotlin-lite directory we use the |
I see, then this probably has to wait for bazelbuild/rules_kotlin#878 |
I added more info on what needs to happen on rules_kotlin in bazelbuild/rules_kotlin#660
Not anybody in particular, but I've heard they are interested. |
Looks like the protobuf team currently doesn't have bandwidth for protocolbuffers/protobuf#12184 |
@meteorcloudy Still on this. I have the following error now:
We seem to have a problem with either koltin or jvm external rule. If anyone wants to check here is the repo: https://github.com/Clement-Jean/protobuf/tree/bzlmod I'm able to run the following commands:
but not:
|
Turns out rules_python and rules_jvm_external are not compatible yet. Protobuf relies on rules_python@0.14.0 which is broken in the registry and rules_jvm_external@5.2 gives the kotlin error shown in the previous comment. However, I have temporarily added them into the WORKSPACE.bzlmod. It seems that it is working, how could I test this further? |
Relevant upstream issue: protocolbuffers/protobuf#13618 It looks like things are beginning to move! Thank you to everyone involved ❤️ |
Anyone have a status? |
bump |
|
Module location
https://github.com/protocolbuffers/protobuf
Link to bzlmod issue in the module's repository
No response
Any other context to provide?
@Yannic says this is the next step to unblocking rules_proto usage in bzlmod.
Fund our work
The text was updated successfully, but these errors were encountered: