From 69695ab9f3be3751eb7a4f48f262573f5099b64c Mon Sep 17 00:00:00 2001 From: Kevin Greene Date: Tue, 13 Jan 2026 14:55:49 -0800 Subject: [PATCH] Load cc_library and cc_test from rules_cc This is the current recommended best-practice. In the next release of bazel, it will no longer be allowed to use the cc_* targets which were previously built into the bazel binary. rules_cc must be used going forward. This PR fixes the build with bazel rolling release in the bazel-central-registry CI. For an example of the current failure, see: https://buildkite.com/bazel/bcr-presubmit/builds/25936/steps/canvas?jid=019bb98a-07bb-4220-a0ea-c7950c477cea#019bb98a-07bb-4220-a0ea-c7950c477cea/L312 --- BUILD | 3 +++ MODULE.bazel | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/BUILD b/BUILD index 939ca12a..5b844ebf 100644 --- a/BUILD +++ b/BUILD @@ -1,5 +1,8 @@ # Bazel(http://bazel.io) BUILD file +load("@rules_cc//cc:cc_library.bzl", "cc_library") +load("@rules_cc//cc:cc_test.bzl", "cc_test") + licenses(["notice"]) exports_files(["LICENSE"]) diff --git a/MODULE.bazel b/MODULE.bazel index cfda2966..1eb843f9 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -2,6 +2,8 @@ module( name = "double-conversion", - version = "3.3.0", + version = "3.4.1", compatibility_level = 3, ) + +bazel_dep(name = "rules_cc", version = "0.2.16")