From 43563074d2f8111016842ef213473ec74ba2b35f Mon Sep 17 00:00:00 2001 From: Ty Smith Date: Wed, 11 Oct 2023 09:24:41 -0700 Subject: [PATCH] Move lint tmp file to buck-out/tmp (#979) --- .../com/uber/okbuck/template/config/OkbuckTargets.rocker.raw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/rocker/com/uber/okbuck/template/config/OkbuckTargets.rocker.raw b/buildSrc/src/main/rocker/com/uber/okbuck/template/config/OkbuckTargets.rocker.raw index 07150acf1..a4b341626 100644 --- a/buildSrc/src/main/rocker/com/uber/okbuck/template/config/OkbuckTargets.rocker.raw +++ b/buildSrc/src/main/rocker/com/uber/okbuck/template/config/OkbuckTargets.rocker.raw @@ -151,11 +151,11 @@ def okbuck_lint( cmd += "export ANDROID_LINT_JARS=\"$PREBUILT_AAR_LINT_JARS{}\"; PROJECT_ROOT=`echo '{}' | sed 's|buck-out.*||'`; ".format(":".join([toLocation(custom_lint) for custom_lint in custom_lints]), toLocation(manifest)) - cmd += "CP_FILE=`mktemp`; " + cmd += "CP_FILE=`mktemp --tmpdir=$TMP`; " if has_srcs: cmd += "ORIGINAL_CP_FILE=`sed 's/@@//' <<< $(@@@(classpathMacro) :src_{})`; ".format(variant) @if(classpathExclusionRegex != null) { - cmd += "TMP_CP_FILE=`mktemp`; " + cmd += "TMP_CP_FILE=`mktemp --tmpdir=$TMP`; " cmd += "tr ':' '\\n' < $ORIGINAL_CP_FILE | sed -e '/@classpathExclusionRegex/d' > $TMP_CP_FILE; tr '\\n' ':' < $TMP_CP_FILE > $CP_FILE; " cmd += "rm $TMP_CP_FILE; " } else {