diff --git a/docker/util/run.bzl b/docker/util/run.bzl index 17106de06..b87294a86 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.files.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, + allow_files = True, + ), "image": attr.label( executable = True, doc = "The image to run the commands in.",