From 54677903cfe0bdabede623049cf131c23c61e420 Mon Sep 17 00:00:00 2001 From: Googler Date: Fri, 5 Apr 2024 00:58:22 -0700 Subject: [PATCH] Fix the load broken by a new version of buildifier. BEGIN_PUBLIC Fix the load broken by a new version of buildifier. Apparently the native-cc lint has been split into native-cc and native-cc-proto. This meant that our native.cc_proto_library was getting incorrectly turned into cc_proto_library when copybara invoked buildifier. END_PUBLIC PiperOrigin-RevId: 622097522 Change-Id: Idb89a5f9facae20f490ac8f83a5adf2859cd52ab --- cc/defs.bzl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cc/defs.bzl b/cc/defs.bzl index a141dbb..11be6fd 100644 --- a/cc/defs.bzl +++ b/cc/defs.bzl @@ -12,8 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", "cc_proto_library") - """Starlark rules for building C++ projects.""" load("//cc/private/rules_impl:cc_flags_supplier.bzl", _cc_flags_supplier = "cc_flags_supplier") @@ -105,8 +103,8 @@ def cc_proto_library(**attrs): **attrs: Rule attributes """ - # buildifier: disable=native-cc - cc_proto_library(**_add_tags(attrs)) + # buildifier: disable=native-cc-proto + native.cc_proto_library(**_add_tags(attrs)) def fdo_prefetch_hints(**attrs): """Bazel fdo_prefetch_hints rule.