Skip to content

Commit

Permalink
Update visibility of files (#243)
Browse files Browse the repository at this point in the history
Stardoc needs access to a file (with exports_files) in order to
generate its documentation.
  • Loading branch information
laurentlb authored Apr 2, 2020
1 parent dfcfe82 commit 2d0c651
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 1 addition & 4 deletions BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ licenses(["notice"])

package(default_visibility = ["//visibility:public"])

exports_files([
"LICENSE",
"lib.bzl",
])
exports_files(["LICENSE"])

filegroup(
name = "test_deps",
Expand Down
6 changes: 6 additions & 0 deletions lib/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
6 changes: 6 additions & 0 deletions rules/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,9 @@ filegroup(
"//:__pkg__",
],
)

# export bzl files for the documentation
exports_files(
glob(["*.bzl"]),
visibility = ["//:__subpackages__"],
)

0 comments on commit 2d0c651

Please sign in to comment.