diff options
Diffstat (limited to 'rules/BUILD')
-rw-r--r-- | rules/BUILD | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/BUILD b/rules/BUILD index b4dde6f..1d67059 100644 --- a/rules/BUILD +++ b/rules/BUILD @@ -15,6 +15,8 @@ # limitations under the License. """Rules for making license declarations.""" +load("@rules_license//rules:licenses_core.bzl", "trace") + package( default_applicable_licenses = ["//:license"], default_visibility = ["//visibility:public"], @@ -22,6 +24,15 @@ package( licenses(["notice"]) +# This target controls the value of the traced target used during dependency collection. +# This value should always be the empty string! +# Specify this value with a flag, like --@rules_license//rules:trace_target=//target/to:trace +trace( + name = "trace_target", + build_setting_default = "", # TRACE-TARGET-SHOULD-BE-EMPTY + visibility = ["//visibility:public"], +) + filegroup( name = "standard_package", srcs = glob(["**"]), |