File tree Expand file tree Collapse file tree
packages/gapic-generator/rules_python_gapic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -76,18 +76,18 @@ def py_gapic_library(
7676 deps = [],
7777 ** kwargs ):
7878
79- # Dynamically wrap input proto targets with the gapic_compat_proto_library adapter
80- # to convert modern Starlark ProtoInfo into rules_gapic's expected CustomProtoInfo.
81- # We extract and propagate 'testonly' from kwargs to prevent Bazel dependency analysis
82- # errors when py_gapic_library or its input proto targets are marked testonly = True.
79+ # We extract and propagate 'testonly' and 'tags' from kwargs to prevent Bazel dependency analysis
80+ # errors and ensure wildcard builds (e.g. manual tags) behave correctly.
8381 testonly = kwargs .get ("testonly" , False )
82+ tags = kwargs .get ("tags" , [])
8483 compat_srcs = []
8584 for i , src in enumerate (srcs ):
8685 compat_name = "%s_compat_src_%d" % (name , i )
8786 gapic_compat_proto_library (
8887 name = compat_name ,
8988 dep = src ,
9089 testonly = testonly ,
90+ tags = tags ,
9191 )
9292 compat_srcs .append (":%s" % compat_name )
9393
You can’t perform that action at this time.
0 commit comments