From 2d0c6512910452f2c8660466ed0dcefb642adea3 Mon Sep 17 00:00:00 2001 From: Laurent Le Brun Date: Thu, 2 Apr 2020 22:20:57 +0200 Subject: [PATCH] Update visibility of files (#243) Stardoc needs access to a file (with exports_files) in order to generate its documentation. --- BUILD | 5 +---- lib/BUILD | 6 ++++++ rules/BUILD | 6 ++++++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/BUILD b/BUILD index 9999fb5..c0ccdcd 100644 --- a/BUILD +++ b/BUILD @@ -4,10 +4,7 @@ licenses(["notice"]) package(default_visibility = ["//visibility:public"]) -exports_files([ - "LICENSE", - "lib.bzl", -]) +exports_files(["LICENSE"]) filegroup( name = "test_deps", diff --git a/lib/BUILD b/lib/BUILD index 44acf46..c959bcc 100644 --- a/lib/BUILD +++ b/lib/BUILD @@ -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__"], +)