Minor cleanup of directory rules. (#512)
They were previously missing default_applicable_licenses.
diff --git a/rules/directory/BUILD b/rules/directory/BUILD
index 6fd710a..c2e7de8 100644
--- a/rules/directory/BUILD
+++ b/rules/directory/BUILD
@@ -1,5 +1,7 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
+package(default_applicable_licenses = ["//:license"])
+
licenses(["notice"])
# export bzl files for the documentation
diff --git a/rules/directory/private/BUILD b/rules/directory/private/BUILD
index 9ebbcdf..718474f 100644
--- a/rules/directory/private/BUILD
+++ b/rules/directory/private/BUILD
@@ -1,5 +1,7 @@
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
+package(default_applicable_licenses = ["//:license"])
+
licenses(["notice"])
# export bzl files for the documentation
@@ -11,13 +13,13 @@
bzl_library(
name = "glob",
srcs = ["glob.bzl"],
- visibility = ["//visibility:public"],
+ visibility = ["//rules/directory:__pkg__"],
)
bzl_library(
name = "paths",
srcs = ["paths.bzl"],
- visibility = ["//visibility:public"],
+ visibility = ["//rules/directory:__pkg__"],
deps = [
"//lib:paths",
],
diff --git a/tests/directory/BUILD b/tests/directory/BUILD
index 5183e40..34fd93d 100644
--- a/tests/directory/BUILD
+++ b/tests/directory/BUILD
@@ -4,6 +4,8 @@
load(":glob_test.bzl", "glob_test_suite")
load(":subdirectory_test.bzl", "subdirectory_test_suite")
+package(default_applicable_licenses = ["@bazel_skylib//:license"])
+
directory(
name = "root",
srcs = glob(["testdata/**"]),