Provide a Bzlmod module to support Bazel6
What language does this apply to? If it's a proto syntax change, is it for proto2 or proto3? No If it's about generated code change, what programming language? No
Describe the problem you are trying to solve. Being able to use protobuf as module in a Bazel project
Describe the solution you'd like Providing a MODULE.bazel file
Describe alternatives you've considered
Additional context Add any other context or screenshots about the feature request here. There is a draft here #12489 but not updated for April 2023, maybe @deannagarcia ?
If the request sounds valuable, i can contribute to provide the module file Olivier
Thanks for the request! We are interested in moving to Bzlmod in the near future and are in communication with Bazel folks on our side. We are currently blocking on the completion of some work to restructure our repositories which will also affect our existing WORKSPACE dependencies.
We expect to start on the Bzlmod effort shortly after and can update back here once this is staffed.
We do already officially support Bazel 6, but the rest of #12489 moving to platforms is currently on hold .
FYI @comius
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.
This issue is labeled inactive because the last activity was over 90 days ago.
Still desired
running into this issue with gazelle and protobuffs deps
There are already patches under Bazel Central Registry to bring bzlmod support to protobuf. But only for several history versions. Is it possible to reuse those patches for the latest code?
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.
This issue is labeled inactive because the last activity was over 90 days ago.
ping
We triage inactive PRs and issues in order to make it easier to find active work. If this issue should remain active or becomes active again, please add a comment.
This issue is labeled inactive because the last activity was over 90 days ago.
$hello_world
protobuf is already published to https://registry.bazel.build/modules/protobuf and managed by the protobuf team.
I'm installing the ProtoBuf lib on my Radxa Rock 3A Debian Bullseye to compile the source code for NCNN. When I executed the command,
bazel build :protoc :protobuf
it raise an error:
INFO: Reading rc options for 'build' from /home/radxa/protobuf-28.1/.bazelrc: Inherited 'common' options: --noenable_bzlmod --repo_env=BAZEL_NO_APPLE_CPP_TOOLCHAIN=1 ERROR: --noenable_bzlmod :: Unrecognized option: --noenable_bzlmod
I checked .bazelrc, and found this link. Any Idea or help pls.
@touchinglie Please upgrade your Bazel version to at least Bazel 6, ideally Bazel 7
@opicaud @zhangskz I think this can be closed?