diff options
author | Laurent Le Brun <laurentlb@gmail.com> | 2020-04-02 22:20:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-02 22:20:57 +0200 |
commit | 2d0c6512910452f2c8660466ed0dcefb642adea3 (patch) | |
tree | 242278ddc2ada10a45f6fe461c145465ca30d8e0 | |
parent | dfcfe825005ffba4a7c15cd9ddac737d040d2506 (diff) | |
download | bazel-skylib-2d0c6512910452f2c8660466ed0dcefb642adea3.tar.gz |
Update visibility of files (#243)
Stardoc needs access to a file (with exports_files) in order to
generate its documentation.
-rw-r--r-- | BUILD | 5 | ||||
-rw-r--r-- | lib/BUILD | 6 | ||||
-rw-r--r-- | rules/BUILD | 6 |
3 files changed, 13 insertions, 4 deletions
@@ -4,10 +4,7 @@ licenses(["notice"]) package(default_visibility = ["//visibility:public"]) -exports_files([ - "LICENSE", - "lib.bzl", -]) +exports_files(["LICENSE"]) filegroup( name = "test_deps", @@ -4,6 +4,12 @@ licenses(["notice"]) package(default_visibility = ["//visibility:public"]) +# export bzl files for the documentation +exports_files( + glob(["*.bzl"]), + visibility = ["//:__subpackages__"], +) + bzl_library( name = "collections", srcs = ["collections.bzl"], diff --git a/rules/BUILD b/rules/BUILD index f3cfe6c..9c6c047 100644 --- a/rules/BUILD +++ b/rules/BUILD @@ -75,3 +75,9 @@ filegroup( "//:__pkg__", ], ) + +# export bzl files for the documentation +exports_files( + glob(["*.bzl"]), + visibility = ["//:__subpackages__"], +) |