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.
This commit is contained in:
Alexandre Rostovtsev 2024-07-15 13:57:10 -04:00 committed by GitHub
parent da7ba2d23c
commit 43c6185e7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -99,6 +99,7 @@ filegroup(
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

View File

@ -69,6 +69,7 @@ filegroup(
srcs = [
"BUILD",
] + glob(["*.bzl"]),
visibility = ["//:__subpackages__"], # Needs skylib's root BUILD file for default_applicable_licenses
)
# The files needed for distribution

View File

@ -56,7 +56,7 @@ filegroup(
srcs = [
"BUILD",
],
visibility = ["//:__subpackages__"],
visibility = ["//:__subpackages__"], # Needs skylib's root BUILD file for default_applicable_licenses
)
# The files needed for distribution