From 64779b8b17341a5497ee21f3256e71cab821bf18 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Fri, 25 Oct 2024 18:33:13 +0200 Subject: lint information for direct dependencies: honor components ... by honoring "modified-transitions" when determining the headers of the direct dependencies. --- CC/EXPRESSIONS | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/CC/EXPRESSIONS b/CC/EXPRESSIONS index 37d6d62..fe6f9cb 100644 --- a/CC/EXPRESSIONS +++ b/CC/EXPRESSIONS @@ -1151,17 +1151,28 @@ , { "type": "to_subdir" , "subdir": "include" , "$1": - { "type": "let*" - , "bindings": - [["transition", {"type": "var", "name": "deps-transition"}]] - , "body": - { "type": "map_union" + { "type": "map_union" + , "$1": + { "type": "++" , "$1": - { "type": "++" - , "$1": - { "type": "foreach" - , "var": "fieldname" - , "range": {"type": "var", "name": "deps-fieldnames"} + { "type": "foreach" + , "var": "fieldname" + , "range": {"type": "var", "name": "deps-fieldnames"} + , "body": + { "type": "let*" + , "bindings": + [ [ "transition" + , { "type": "lookup" + , "map": + { "type": "var" + , "name": "modified-transitions" + , "default": {"type": "empty_map"} + } + , "key": {"type": "var", "name": "fieldname"} + , "default": {"type": "var", "name": "deps-transition"} + } + ] + ] , "body": {"type": "CALL_EXPRESSION", "name": "runfiles_list"} } -- cgit v1.2.3 From 197a35703d1ced53f71d6137b9133d2558d888d4 Mon Sep 17 00:00:00 2001 From: Klaus Aehlig Date: Thu, 31 Oct 2024 13:06:09 +0100 Subject: ["lint", "targets"]: support TMPDIR --- lint/RULES | 2 ++ lint/call_lint | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lint/RULES b/lint/RULES index 04ad230..e1000d9 100644 --- a/lint/RULES +++ b/lint/RULES @@ -67,6 +67,8 @@ , " - at key \"direct deps artifact names\" a list of all input" , " artifacts that come from the target itself or are runfiles of a" , " direct dependency." + , "- TMPDIR pointing to a directory location that can be used to" + , " create additional temporary files." , "It is supposed to indicate by the exit code whether the file to lint" , "complies with the given linting policy, with 0 meaning" , "compliant." diff --git a/lint/call_lint b/lint/call_lint index ca7e4ef..fd2a244 100755 --- a/lint/call_lint +++ b/lint/call_lint @@ -24,6 +24,8 @@ export OUT="$(pwd)/out" mkdir -p config export CONFIG="$(pwd)/config" export META="$(pwd)/meta.json" +mkdir scratch +export TMPDIR=$(realpath scratch) cd work -- cgit v1.2.3