Skip to content

Commit 5d2416d

Browse files
authored
fix: //ic-os/.../:disk.img targets (#5019)
This fixes the following error: ``` $ bazel build //ic-os/setupos/envs/prod:disk.img --config=bes INFO: Invocation ID: e57da46c-660c-466f-bb15-b03bfa8d18da INFO: Streaming build results to: https://dash.idx.dfinity.network/invocation/e57da46c-660c-466f-bb15-b03bfa8d18da ERROR: /ic/ic-os/setupos/envs/prod/BUILD.bazel:10:11: in disk_image_no_tar rule //ic-os/setupos/envs/prod:disk.img: Traceback (most recent call last): File "/ic/toolchains/sysimage/toolchain.bzl", line 466, column 27, in _disk_image_no_tar_impl _run_with_icos_wrapper( File "/ic/toolchains/sysimage/toolchain.bzl", line 15, column 20, in _run_with_icos_wrapper ctx.actions.run( Error in run: at index 0 of inputs, got element of type list, want File ```
1 parent 0c4a85b commit 5d2416d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

toolchains/sysimage/toolchain.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ def _disk_image_no_tar_impl(ctx):
454454
outputs.append(output_file)
455455

456456
args.extend(["-p", ctx.files.layout[0].path])
457-
inputs.append(ctx.files.layout)
457+
inputs.extend(ctx.files.layout)
458458

459459
if ctx.attr.expanded_size:
460460
args.extend(["-s", ctx.attr.expanded_size])

0 commit comments

Comments
 (0)