temp repro

This commit is contained in:
2021-05-24 00:11:58 +03:00
parent 747807f1ea
commit dea04a72d8
2 changed files with 29 additions and 1 deletions

View File

@@ -33,3 +33,19 @@ rootfs = rule(
),
},
)
def _temp_impl(ctx):
for f in ctx.files.data:
print(f.path)
ctx.actions.run_shell(
outputs = [ctx.outputs.out],
command = "find $@",
)
temp = rule(
implementation = _temp_impl,
attrs = {
"data": attr.label(mandatory = True, allow_single_file = True),
"out": attr.output(mandatory = True)
},
)