From c4403fcc3fdf90eea1035df9fb60fe8f103f0dda Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Tue, 8 Jun 2021 02:48:22 -0700 Subject: [PATCH] fix(builtin): propogate tags to both generated targets in generated_file_test --- internal/generated_file_test/generated_file_test.bzl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/generated_file_test/generated_file_test.bzl b/internal/generated_file_test/generated_file_test.bzl index d0d63e7620..4f33a7fc1c 100644 --- a/internal/generated_file_test/generated_file_test.bzl +++ b/internal/generated_file_test/generated_file_test.bzl @@ -26,6 +26,8 @@ def generated_file_test(name, generated, src, substring_search = False, src_dbg else: src_dbg = src + tags = kwargs.pop("tags", []) + loc = "$(rootpath %s)" nodejs_test( name = name, @@ -37,6 +39,7 @@ def generated_file_test(name, generated, src, substring_search = False, src_dbg loc % generated, ], data = data, + tags = tags, visibility = visibility, **kwargs ) @@ -48,5 +51,6 @@ def generated_file_test(name, generated, src, substring_search = False, src_dbg entry_point = "@build_bazel_rules_nodejs//internal/generated_file_test:bundle.js", templated_args = ["--out", loc % src, loc % src_dbg, loc % generated], data = data, + tags = tags, visibility = visibility, )