rules_cc
rules_cc copied to clipboard
Buildifier warns about lack of rules_cc; rules_cc says you don't have to use it
native-cc: Function "cc_library" is not global anymore and needs to be loaded from "@rules_cc//cc:defs.bzl". (https://github.com/bazelbuild/buildtools/blob/master/WARNINGS.md#native-cc)
There is no need to use rules from this repository just yet. If you want to use rules_cc anyway, add the following to your WORKSPACE file https://github.com/bazelbuild/rules_cc#getting-started
These are clearly not compatible. In addition, the instruction to add rules_cc to your WORKSPACE file seem to be not accurate based on https://github.com/bazelbuild/bazel/issues/8743#issuecomment-704209848.
Please make the tools in the ecosystem and their documentation consistent.
Cross-posted as https://github.com/bazelbuild/buildtools/issues/923
related https://github.com/bazelbuild/rules_cc/issues/86
I would propose to close this issue. Buildifier is no longer asking for loading rules_cc
Agreed. The corresponding Buildozer issue (https://github.com/bazelbuild/buildtools/issues/923) was fixed in https://github.com/bazelbuild/buildtools/pull/952