@@ -320,7 +320,7 @@ def _colon_paths(data):
320
320
321
321
def _gen_proto_srcjar_impl (ctx ):
322
322
acc_imports = []
323
- transitive_proto_paths = depset ()
323
+ transitive_proto_paths = []
324
324
325
325
proto_deps , jvm_deps = [], []
326
326
for target in ctx .attr .deps :
@@ -329,7 +329,7 @@ def _gen_proto_srcjar_impl(ctx):
329
329
acc_imports .append (target .proto .transitive_sources )
330
330
#inline this if after 0.12.0 is the oldest supported version
331
331
if hasattr (target .proto , 'transitive_proto_path' ):
332
- transitive_proto_paths += target .proto .transitive_proto_path
332
+ transitive_proto_paths . append ( target .proto .transitive_proto_path )
333
333
else :
334
334
jvm_deps .append (target )
335
335
@@ -345,7 +345,7 @@ def _gen_proto_srcjar_impl(ctx):
345
345
# Command line args to worker cannot be empty so using padding
346
346
flags_arg = "-" + "," .join (ctx .attr .flags ),
347
347
# Command line args to worker cannot be empty so using padding
348
- packages = "-" + ":" .join (transitive_proto_paths . to_list () )
348
+ packages = "-" + ":" .join (transitive_proto_paths )
349
349
)
350
350
argfile = ctx .actions .declare_file ("%s_worker_input" % ctx .label .name , sibling = ctx .outputs .srcjar )
351
351
ctx .actions .write (output = argfile , content = worker_content )
0 commit comments