-
Notifications
You must be signed in to change notification settings - Fork 98
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
Error loading @rules_cc//cc:defs.bzl
due to com_google_protobuf
#274
Comments
@rules_cc//cc:defs.bzl
@rules_cc//cc:defs.bzl
due to com_google_protobuf
This is rather unfortunate, but the plan was for a long time that cc_proto_library would be in rules_cc. We introduced it into defs.bzl file and it got used. Now we need to keep it until the users migrate to cc_proto_library in com_google_protobuf. I tried removing it. There's a releases 0.1.0 of rules_cc that doesn't have it in the defs.bzl file. But it breaks several important repos. For example grpc. |
For backward compatibility, could |
There's no native What version of protobuf are you using, that does such an atrocity? I suggest using Protobuf 28. and 29., first one has a redirect to the native rule available in Bazel <8. 29 (to be released soon) has a Starlark implementation of the rule. The latter ise compatible with Bazel 6,7 and 8. Bazel 8 will load cc_proto_library from com_google_protobuf 29.0 automatically without the need for a load. rules_proto are deprecated, but 7.x.x is a compatibility release, that points to protobuf 28.x+, so the migration may be more smooth. defs.bzl files are deprecated and we should migrate away from them. |
I think
This sounds disappointing. It's very frustrating to need to hunt down all the unique ways to load rules from external repositories. That being said, neither of these topics feel relevant to |
Wow, this even goes into
I don't think the |
Description of the problem / feature request:
I just tried bumping to version
0.0.16
inrules_rust
and ran into the followinghttps://buildkite.com/bazel/rules-rust-rustlang/builds/12671#01933059-0247-44f6-88ed-b383c84ef6af
It seems inappropriate for
rules_cc
to be loadingcom_google_protobuf
(at least indefs.bzl
) and think it should be removed.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
bazelbuild/rules_rust#3002
What operating system are you running Bazel on?
Linux, MacOS, Windows
What's the output of
bazel info release
?release 7.3.2
What version of rules_cc do you use? Can you paste the workspace rule used to fetch rules_cc? What other relevant dependencies does your project have?
0.0.16
The text was updated successfully, but these errors were encountered: