Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Commit

Permalink
Update run.bzl (#1933)
Browse files Browse the repository at this point in the history
* Update run.bzl

* Update run.bzl

* allow_files

* use files
  • Loading branch information
dieend authored Oct 1, 2021
1 parent bdea234 commit 1bb136e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docker/util/run.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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.",
Expand Down

0 comments on commit 1bb136e

Please sign in to comment.