Skip to content

[Bug]: //lint/clang_tidy.bzl refers to CcInfo, removed from Bazel 9 #835

Description

@jashank

What happened?

As with #810: @aspect_rules_lint//lint/clang_tidy.bzl itself refers to CcInfo at

if not CcInfo in target:
return []
files_to_lint = _filter_srcs(ctx.rule)
compilation_context = target[CcInfo].compilation_context
if hasattr(ctx.rule.attr, "implementation_deps"):
compilation_context = cc_common.merge_compilation_contexts(
compilation_contexts = [compilation_context] +
[implementation_dep[CcInfo].compilation_context for implementation_dep in ctx.rule.attr.implementation_deps],
:

(18:53:54) ERROR: /var/obj/_bazel_jashank/7a23896fd80f37b91bcc9ce88059a418/external/aspect_rules_lint+/lint/clang_tidy.bzl:379:12: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:

load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(18:53:54) ERROR: /var/obj/_bazel_jashank/7a23896fd80f37b91bcc9ce88059a418/external/aspect_rules_lint+/lint/clang_tidy.bzl:383:34: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:

load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")
(18:53:54) ERROR: /var/obj/_bazel_jashank/7a23896fd80f37b91bcc9ce88059a418/external/aspect_rules_lint+/lint/clang_tidy.bzl:387:56: The CcInfo symbol has been removed, add the following to your BUILD/bzl file:

load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

I suspect that adding the suggested load line would fix this.

Version

Development (host) and target OS/architectures:

Output of bazel --version:

Version of the Aspect rules, or other relevant rules from your
WORKSPACE or MODULE.bazel file:

Language(s) and/or frameworks involved:

How to reproduce

Any other information?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions