Make only root test_deps externally visible (#508)
All other test_deps targets implicitly require the root BUILD file
for the `license` target for their default_applicable_licenses;
therefore, users should only depend on the root test_deps target.
diff --git a/lib/BUILD b/lib/BUILD
index cff8065..c22c7ab 100644
--- a/lib/BUILD
+++ b/lib/BUILD
@@ -99,6 +99,7 @@
name = "test_deps",
testonly = True,
srcs = ["BUILD"] + glob(["*.bzl"]),
+ visibility = ["//:__subpackages__"], # Needs skylib's root BUILD file for default_applicable_licenses
)
# The files needed for distribution
diff --git a/rules/BUILD b/rules/BUILD
index 11706e4..293fd03 100644
--- a/rules/BUILD
+++ b/rules/BUILD
@@ -69,6 +69,7 @@
srcs = [
"BUILD",
] + glob(["*.bzl"]),
+ visibility = ["//:__subpackages__"], # Needs skylib's root BUILD file for default_applicable_licenses
)
# The files needed for distribution
diff --git a/toolchains/unittest/BUILD b/toolchains/unittest/BUILD
index 275ddfc..c5744dd 100644
--- a/toolchains/unittest/BUILD
+++ b/toolchains/unittest/BUILD
@@ -56,7 +56,7 @@
srcs = [
"BUILD",
],
- visibility = ["//:__subpackages__"],
+ visibility = ["//:__subpackages__"], # Needs skylib's root BUILD file for default_applicable_licenses
)
# The files needed for distribution