From 428f4af39d24dd13ee087112be7858c153cb18a3 Mon Sep 17 00:00:00 2001 From: vladmos Date: Thu, 17 Aug 2017 03:27:03 +0200 Subject: Prepare .bzl files to the new semantics of += on lists In the future += on lists will work like .extend (by mutating the list) instead of copying the list items to a new list (current behavior). Some .bzl files need to be cleaned up to be compatible with both behaviors. PiperOrigin-RevId: 165528261 --- tools/build_defs/pkg/pkg.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/build_defs') diff --git a/tools/build_defs/pkg/pkg.bzl b/tools/build_defs/pkg/pkg.bzl index 272b1ae763..f5a17dfc72 100644 --- a/tools/build_defs/pkg/pkg.bzl +++ b/tools/build_defs/pkg/pkg.bzl @@ -31,7 +31,7 @@ def _pkg_tar_impl(ctx): "--owner=" + ctx.attr.owner, "--owner_name=" + ctx.attr.ownername, ] - file_inputs = ctx.files.srcs + file_inputs = ctx.files.srcs[:] args += ["--file=%s=%s" % (f.path, dest_path(f, data_path)) for f in ctx.files.srcs] for target, f_dest_path in ctx.attr.files.items(): -- cgit v1.2.3