From b1859c1ba4229812497da501e2843ab20d27682b Mon Sep 17 00:00:00 2001 From: Oliver Reiche Date: Wed, 14 Dec 2022 14:41:22 +0100 Subject: rules: Collect artifacts from "srcs" targets for ["data", "staged"] --- data/RULES | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'data') diff --git a/data/RULES b/data/RULES index 99c8e5c..feb1a73 100644 --- a/data/RULES +++ b/data/RULES @@ -19,7 +19,10 @@ , "specied in the field \"deps\" (in their original location)." ] , "runfiles_doc": ["Same as artifacts"] - , "imports": {"runfiles": ["./", "..", "field_runfiles"]} + , "imports": + { "runfiles": ["./", "..", "field_runfiles"] + , "artifacts": ["./", "..", "field_artifacts"] + } , "expression": { "type": "let*" , "bindings": @@ -32,7 +35,13 @@ , [ "srcs" , { "type": "let*" , "bindings": [["fieldname", "srcs"]] - , "body": {"type": "CALL_EXPRESSION", "name": "runfiles"} + , "body": + { "type": "map_union" + , "$1": + [ {"type": "CALL_EXPRESSION", "name": "runfiles"} + , {"type": "CALL_EXPRESSION", "name": "artifacts"} + ] + } } ] , [ "staged" -- cgit v1.2.3