Skip to content

Bazel 9: bad error message when CcInfo not loaded #566

@alexeagle

Description

@alexeagle

this ought to be a Symbol Not Found error if you referenced CcInfo with no load statement...

File "/external/rules_nodejs+/nodejs/toolchain.bzl", line 100, column 43, in _nodejs_toolchain_impl
"CcInfo": ctx.attr.headers[CcInfo],
Error: Type Target only supports indexing by object constructors, got NoneType instead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions