bazelbuild / bazelbuild/rules_cc

Error loading `@rules_cc//cc:defs.bzl` due to `com_google_protobuf`

Open
#274 6 comments 0 reactions 0 assignees View on GitHub
P3
Dominant language
Starlark
Stars
247
Forks
196
PR merge metrics
No merged PRs in 30d

Description

### Description of the problem / feature request:

I just tried bumping to version `0.0.16` in `rules_rust` and ran into the following

```
rules_cc/cc/defs.bzl:16:6: Label '@@com_google_protobuf//bazel:cc_proto_library.bzl' is invalid because 'bazel' is not a package;
```
https://buildkite.com/bazel/rules-rust-rustlang/builds/12671#01933059-0247-44f6-88ed-b383c84ef6af

It seems inappropriate for `rules_cc` to be loading `com_google_protobuf` (at least in `defs.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.

https://github.com/bazelbuild/rules_rust/pull/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`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.