Skip to content

Commit 2e33979

Browse files
add expand variable to modes
1 parent 713876d commit 2e33979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/private/tar/tar.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def _pkg_tar_impl(ctx):
105105
args.add("--mtime", "portable")
106106
if ctx.attr.modes:
107107
for key in ctx.attr.modes:
108-
args.add("--modes", "%s=%s" % (_quote(key), ctx.attr.modes[key]))
108+
expanded_key = expand_variables(ctx, key)
109+
args.add("--modes", "%s=%s" % (_quote(expanded_key), ctx.attr.modes[key]))
109110
if ctx.attr.owners:
110111
for key in ctx.attr.owners:
111112
args.add("--owners", "%s=%s" % (_quote(key), ctx.attr.owners[key]))

0 commit comments

Comments
 (0)