From 5f92c744fc0be770edfd393c573e6f98c8debedc Mon Sep 17 00:00:00 2001 From: Matt Robinson Date: Thu, 10 Oct 2024 08:47:27 -0600 Subject: [PATCH] Fix `//stardoc:distro_bins` empty glob For a ruleset like rules_apple that still supports Bazel 6, fix support on pre-`0.7.0` releases by strictly allowing an empty glob on the `//stardoc:distro_bins` to fix an issue like https://github.com/bazelbuild/rules_apple/issues/2555. Signed-off-by: Matt Robinson --- stardoc/BUILD | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stardoc/BUILD b/stardoc/BUILD index 159ca0e5..ee7e0996 100644 --- a/stardoc/BUILD +++ b/stardoc/BUILD @@ -85,6 +85,9 @@ filegroup( # Binaries needed for release tarball. filegroup( name = "distro_bins", - srcs = glob(["*.jar"]), + srcs = glob( + ["*.jar"], + allow_empty = True, + ), visibility = ["//:__pkg__"], )