From 2700e6b728caed888acf3310b7fc9478ef2ababb Mon Sep 17 00:00:00 2001 From: Adinata Thayib Date: Wed, 29 Sep 2021 14:09:33 -0700 Subject: [PATCH] Update run.bzl --- docker/util/run.bzl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker/util/run.bzl b/docker/util/run.bzl index 17106de06..ca13a4ae2 100644 --- a/docker/util/run.bzl +++ b/docker/util/run.bzl @@ -67,6 +67,7 @@ def _extract_impl( extract_file = extract_file or ctx.attr.extract_file output_file = output_file or ctx.outputs.out script = script_file or ctx.outputs.script + extra_deps = extra_deps or ctx.attr.extra_deps toolchain_info = ctx.toolchains["@io_bazel_rules_docker//toolchains/docker:toolchain_type"].info @@ -111,6 +112,11 @@ _extract_attrs = { doc = "Path to file to extract from container.", mandatory = True, ), + "extra_deps": attr.label_list( + doc = "Extra dependency to be passed as inputs", + mandatory = False, + default = None, + ), "image": attr.label( executable = True, doc = "The image to run the commands in.",