diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-10-31 13:06:09 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-10-31 13:56:00 +0100 |
commit | 197a35703d1ced53f71d6137b9133d2558d888d4 (patch) | |
tree | 2319e20e9a5c5b2f12f42001bd64e870b46320b8 /lint | |
parent | ee06e3ec3b3deb0a9bf43165ba477e54f4ccbcc5 (diff) | |
download | rules-cc-197a35703d1ced53f71d6137b9133d2558d888d4.tar.gz |
["lint", "targets"]: support TMPDIR
Diffstat (limited to 'lint')
-rw-r--r-- | lint/RULES | 2 | ||||
-rwxr-xr-x | lint/call_lint | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -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 |