Skip to content

Commit

Permalink
Pass --cache-dir to further sandbox lint (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bencodes authored Oct 25, 2023
1 parent 45bcea1 commit de26f9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/AndroidLintRunner.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -87,6 +88,7 @@ internal class AndroidLintRunner {
actionArgs: AndroidLintActionArgs,
projectFilePath: Path,
baselineFilePath: Path,
cacheDirectoryPath: Path,
): Int {
val args = mutableListOf(
"--project",
Expand All @@ -106,6 +108,8 @@ internal class AndroidLintRunner {
"--baseline",
baselineFilePath.pathString,
"--update-baseline",
"--cache-dir",
cacheDirectoryPath.pathString,
)
if (actionArgs.warningsAsErrors) {
args.add("-Werror")
Expand Down

0 comments on commit de26f9d

Please sign in to comment.