From 24fa9550be0fab7764bb712c00128852f16446e6 Mon Sep 17 00:00:00 2001 From: Andreas Herrmann Date: Tue, 26 May 2020 10:07:20 +0200 Subject: [PATCH] Update rules_cc The previous version does not mark the `toolchain_type` as public, meaning that users of a CC toolchain using `@rules_cc//cc:toolchain_type` will get build errors along the lines of ``` ERROR: .../local_config_cc_toolchains/BUILD.bazel:18:1: in toolchain rule @local_config_cc_toolchains//:cc-toolchain-armeabi-v7a: alias '@rules_cc//cc:toolchain_type' referring to target '@bazel_tools//tools/cpp:toolchain_type' is not visible from target '@local_config_cc_toolchains//:cc-toolchain-armeabi-v7a'. Check the visibility declaration of the former target if you think the dependency is legitimate ``` --- protobuf_deps.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protobuf_deps.bzl b/protobuf_deps.bzl index fb0c47786d..a1603323af 100644 --- a/protobuf_deps.bzl +++ b/protobuf_deps.bzl @@ -35,9 +35,9 @@ def protobuf_deps(): if not native.existing_rule("rules_cc"): http_archive( name = "rules_cc", - sha256 = "29daf0159f0cf552fcff60b49d8bcd4f08f08506d2da6e41b07058ec50cfeaec", - strip_prefix = "rules_cc-b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e", - urls = ["https://github.com/bazelbuild/rules_cc/archive/b7fe9697c0c76ab2fd431a891dbb9a6a32ed7c3e.tar.gz"], + sha256 = "9d48151ea71b3e225adfb6867e6d2c7d0dce46cbdc8710d9a9a628574dfd40a0", + strip_prefix = "rules_cc-818289e5613731ae410efb54218a4077fb9dbb03", + urls = ["https://github.com/bazelbuild/rules_cc/archive/818289e5613731ae410efb54218a4077fb9dbb03.tar.gz"], ) if not native.existing_rule("rules_java"):