Skip to content

Commit c4df150

Browse files
authored
fix: handle package that starts with private (#1193)
https://registry.bazel.build/modules/bazelrc-preset.bzl/1.4.0 is leaking private docs
1 parent fb0875c commit c4df150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bzl_library.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def bzl_library(name, srcs = [], deps = [], **kwargs):
7676
# but there's no tool available for that since the Java implementation code is only exposed as a
7777
# native Bazel rule.
7878
# See bazelbuild/bazel-skylib#568
79-
if hasattr(native, "starlark_doc_extract") and "/private" not in native.package_name():
79+
if hasattr(native, "starlark_doc_extract") and "private" not in native.package_name().split("/"):
8080
extract_targets = []
8181
for i, src in enumerate(srcs):
8282
extract_target = "{}.doc_extract{}".format(name, i if i > 0 else "")

0 commit comments

Comments
 (0)