summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-12-14 15:43:29 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-12-14 15:43:47 +0100
commitbf7280d8b2e98b4a6d71c1a4678e8899e62ba953 (patch)
tree5573164c2b7e0157dd48608a2ce61e37f7e829f0 /rules
parentd3409f7f5ac6cf505ec5a1562d43f3684dede0e0 (diff)
downloadjustbuild-bf7280d8b2e98b4a6d71c1a4678e8899e62ba953.tar.gz
rules: Report fieldname of overlapping artifacts/runfiles
Diffstat (limited to 'rules')
-rw-r--r--rules/EXPRESSIONS6
1 files changed, 4 insertions, 2 deletions
diff --git a/rules/EXPRESSIONS b/rules/EXPRESSIONS
index f40e5a3a..b974026e 100644
--- a/rules/EXPRESSIONS
+++ b/rules/EXPRESSIONS
@@ -27,7 +27,8 @@
, "imports": {"artifacts_list": "field_artifacts_list"}
, "expression":
{ "type": "disjoint_map_union"
- , "msg": "artifacts must not overlap"
+ , "msg":
+ ["artifacts", {"type": "var", "name": "fieldname"}, "must not overlap"]
, "$1": {"type": "CALL_EXPRESSION", "name": "artifacts_list"}
}
}
@@ -60,7 +61,8 @@
, "imports": {"runfiles_list": "field_runfiles_list"}
, "expression":
{ "type": "disjoint_map_union"
- , "msg": "runfiles must not overlap"
+ , "msg":
+ ["runfiles", {"type": "var", "name": "fieldname"}, "must not overlap"]
, "$1": {"type": "CALL_EXPRESSION", "name": "runfiles_list"}
}
}