rules_cc icon indicating copy to clipboard operation
rules_cc copied to clipboard

Buildifier warns about lack of rules_cc; rules_cc says you don't have to use it

Open GMNGeoffrey opened this issue 4 years ago • 1 comments

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

GMNGeoffrey avatar Nov 13 '20 17:11 GMNGeoffrey

related https://github.com/bazelbuild/rules_cc/issues/86

keith avatar Nov 13 '20 18:11 keith

I would propose to close this issue. Buildifier is no longer asking for loading rules_cc

limdor avatar Jun 05 '23 21:06 limdor

Agreed. The corresponding Buildozer issue (https://github.com/bazelbuild/buildtools/issues/923) was fixed in https://github.com/bazelbuild/buildtools/pull/952

GMNGeoffrey avatar Jun 05 '23 21:06 GMNGeoffrey