Skip to content

Commit 0466084

Browse files
mattemalexeagle
authored andcommitted
fix: forward srcs, deps and visibility of dummy_bzl_library to the filegroup when publishing
1 parent 4d8f15c commit 0466084

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

index.bzl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,12 @@ js_library = _js_library
4949
# ANY RULES ADDED HERE SHOULD BE DOCUMENTED, see index.for_docs.bzl
5050

5151
# Allows us to avoid a transitive dependency on bazel_skylib from leaking to users
52-
def dummy_bzl_library(name, **kwargs):
53-
native.filegroup(name = name)
52+
def dummy_bzl_library(name, srcs = [], deps = [], visibility = ["//visibility:public"], **kwargs):
53+
native.filegroup(
54+
name = name,
55+
srcs = srcs + deps,
56+
visibility = visibility,
57+
)
5458

5559
# @unsorted-dict-items
5660
COMMON_REPLACEMENTS = {

0 commit comments

Comments
 (0)