...
1load("//hack/tools/bzl:index.bzl", "platforms", "tool")
2
3# allows .bzl files in this package to be import-able by other Bazel files
4package(default_visibility = ["//visibility:public"])
5
6exports_files(["shellcheck.sh.tpl"])
7
8# call platforms() to make config_settings for OSX and Linux platforms
9# available to our `tool` macro
10platforms()
11
12tool(
13 name = "fetch_shellcheck",
14 outs = ["shellcheck"],
15 darwin = "@shellcheck_darwin_x86_64//:file",
16 k8 = "@shellcheck_linux_x86_64//:file",
17 m1 = "@shellcheck_darwin_x86_64//:file",
18 tags = ["manual"],
19)
View as plain text