-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conflict with rules proto: "cannot load '@rules_cc//cc:action_names.bzl': no such file" #8
Comments
Investigating this further, the root cause is at the The One workaround is to add the following to the
I am not very experienced with the bazel rules, though. Is there a cleaner way to apply a patch to the |
I ran into the same issue. Thanks @gioannidis for figuring out the root cause. For me, the build only succeeded after including your |
Thanks for reporting this. As a tactical measure, we can drop the dependency on "CPP_COMPILE_ACTION_NAME", and hardcode its current value. |
Overview
bazel_clang_tidy
seems to conflict with protobuf rules fromrules_proto
.The error I am getting is:
Details below.
Steps to reproduce
Clone the
bazel_clang_tidy
repository (as of this commit).Apply the 0001-Added-protobuf-external-dependency-and-sample-proto.patch.gz patch.
rules_proto
repository, updated to the latest commit.test.proto
file.Build without invoking
clang-tidy
: works normallyBuild with
clang-tidy
aspect: raises error (see below)Detailed error message
Invoking the
clang-tidy
aspect with protobuf rules generates the following errors:Offending line
Removing the following rule from
WORKSPACE
fixes theclang-tidy
error, but breaks of course the compilation of//example:test.proto
:The text was updated successfully, but these errors were encountered: