From 27e3b10472e4cdd36fff23b5f8fcf0101dacfd6a Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Mon, 5 Feb 2024 17:43:58 -0800 Subject: [PATCH] fix: merge user tags in stardoc_with_diff_test (#746) --- docs/BUILD.bazel | 1 + lib/private/docs.bzl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/BUILD.bazel b/docs/BUILD.bazel index 073fe585a..fe8d7d201 100644 --- a/docs/BUILD.bazel +++ b/docs/BUILD.bazel @@ -25,6 +25,7 @@ stardoc_with_diff_test( stardoc_with_diff_test( name = "docs", bzl_library_target = "//lib:docs", + tags = ["some_random_tag_for_testing_pr746_regression"], ) stardoc_with_diff_test( diff --git a/lib/private/docs.bzl b/lib/private/docs.bzl index f2a5dce1e..efa225d4b 100644 --- a/lib/private/docs.bzl +++ b/lib/private/docs.bzl @@ -30,7 +30,7 @@ def stardoc_with_diff_test( out = name + "-docgen.md", input = bzl_library_target + ".bzl", deps = [bzl_library_target], - tags = ["package:" + native.package_name()], # Tag the package name which will help us reconstruct the write_source_files label in update_docs + tags = kwargs.pop("tags", []) + ["package:" + native.package_name()], # Tag the package name which will help us reconstruct the write_source_files label in update_docs target_compatible_with = target_compatible_with, **kwargs )