From 7af974d145623a801e3682db091fcca1f32324c5 Mon Sep 17 00:00:00 2001 From: Simon Mavi Stewart Date: Wed, 4 Sep 2024 13:53:48 +0100 Subject: [PATCH] Export all the deps we need for stardoc to work This enables rulesets that use `rules_license` to be properly documented via `stardoc`. Without this, `stardoc` will fail because the source files for particular rules or providers will not be available. --- BUILD | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/BUILD b/BUILD index 31520c4..44ada8b 100644 --- a/BUILD +++ b/BUILD @@ -12,9 +12,9 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@rules_license//:version.bzl", "version") load("@rules_license//rules:license.bzl", "license") load("@rules_license//rules:package_info.bzl", "package_info") -load("@rules_license//:version.bzl", "version") package( default_applicable_licenses = [":license", ":package_info"], @@ -55,10 +55,20 @@ filegroup( "*.bzl", "*.md", ]) + [ - "MODULE.bazel", "BUILD", "LICENSE", + "MODULE.bazel", "WORKSPACE.bzlmod", ], visibility = ["//distro:__pkg__"], ) + +filegroup( + name = "docs_deps", + srcs = [ + ":standard_package", + "//rules:standard_package", + "//rules_gathering:standard_package", + ], + visibility = ["//visibility:public"], +)