From 70171f0ab3abc44f12ed9cb173d05f8ecf3af7ff Mon Sep 17 00:00:00 2001 From: Benjamin Lee Date: Tue, 24 Oct 2023 20:28:37 -0700 Subject: [PATCH] Pass --cache-dir to further sandbox lint --- src/cli/AndroidLintRunner.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli/AndroidLintRunner.kt b/src/cli/AndroidLintRunner.kt index 22566b7..eb814b8 100644 --- a/src/cli/AndroidLintRunner.kt +++ b/src/cli/AndroidLintRunner.kt @@ -64,6 +64,7 @@ internal class AndroidLintRunner { actionArgs = args, projectFilePath = projectFile, baselineFilePath = baselineFile, + cacheDirectoryPath = workingDirectory.resolve("android-cache"), ) // Pure hacks to strip the relative paths and exec roots out of the file @@ -87,6 +88,7 @@ internal class AndroidLintRunner { actionArgs: AndroidLintActionArgs, projectFilePath: Path, baselineFilePath: Path, + cacheDirectoryPath: Path, ): Int { val args = mutableListOf( "--project", @@ -106,6 +108,8 @@ internal class AndroidLintRunner { "--baseline", baselineFilePath.pathString, "--update-baseline", + "--cache-dir", + cacheDirectoryPath.pathString, ) if (actionArgs.warningsAsErrors) { args.add("-Werror")