load("//hack/tools/bzl:index.bzl", "platforms", "tool") # allows .bzl files in this package to be import-able by other Bazel files package(default_visibility = ["//visibility:public"]) exports_files(["shellcheck.sh.tpl"]) # call platforms() to make config_settings for OSX and Linux platforms # available to our `tool` macro platforms() tool( name = "fetch_shellcheck", outs = ["shellcheck"], darwin = "@shellcheck_darwin_x86_64//:file", k8 = "@shellcheck_linux_x86_64//:file", m1 = "@shellcheck_darwin_x86_64//:file", tags = ["manual"], )