From 11c6d4e4a95729003aad08947673e37aff5a9d2b Mon Sep 17 00:00:00 2001 From: tys Date: Tue, 10 Oct 2023 16:27:13 -0700 Subject: [PATCH] Move lint tmp file to buck-out/tmp --- .../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 {