From 299fce788bb4f3943e61ee954e287d148da546d0 Mon Sep 17 00:00:00 2001 From: Xavier Bonaventura Date: Mon, 3 May 2021 20:10:08 +0200 Subject: [PATCH] Fix buildifier format issue --- WORKSPACE | 4 +++- examples/custom_toolchain/toolchain_config.bzl | 2 -- examples/my_c_compile/my_c_compile.bzl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 4a949e8..f5063b6 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -4,13 +4,15 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_pkg", + sha256 = "352c090cc3d3f9a6b4e676cf42a6047c16824959b438895a76c2989c6d7c246a", urls = [ "https://github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz", "https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.2.5/rules_pkg-0.2.5.tar.gz", ], - sha256 = "352c090cc3d3f9a6b4e676cf42a6047c16824959b438895a76c2989c6d7c246a", ) + load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies") + rules_pkg_dependencies() http_archive( diff --git a/examples/custom_toolchain/toolchain_config.bzl b/examples/custom_toolchain/toolchain_config.bzl index 0a18f22..7e0a244 100644 --- a/examples/custom_toolchain/toolchain_config.bzl +++ b/examples/custom_toolchain/toolchain_config.bzl @@ -15,8 +15,6 @@ advanced usage. load("@bazel_tools//tools/cpp:cc_toolchain_config_lib.bzl", "tool_path") def _impl(ctx): - print("Invoking my custom toolchain!") - tool_paths = [ tool_path( name = "ar", diff --git a/examples/my_c_compile/my_c_compile.bzl b/examples/my_c_compile/my_c_compile.bzl index f29207e..c8acec6 100644 --- a/examples/my_c_compile/my_c_compile.bzl +++ b/examples/my_c_compile/my_c_compile.bzl @@ -20,7 +20,7 @@ load("@rules_cc//cc:toolchain_utils.bzl", "find_cpp_toolchain") MyCCompileInfo = provider(doc = "", fields = ["object"]) DISABLED_FEATURES = [ -# "module_maps", # copybara-comment-this-out-please + # "module_maps", # copybara-comment-this-out-please ] def _my_c_compile_impl(ctx):