Skip to content

Commit

Permalink
reporter-web-app: Disable unconditional caching for Yarn commands
Browse files Browse the repository at this point in the history
For yet unknown reasons, restoring `node_modules` from Gradle's build
cache seems to occasionally trigger

    Error: Cannot find module '../scripts/build'

when running `rescripts` via `yarn`. Disable caching across builds for
these tasks completely to work around this issue.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
  • Loading branch information
sschuberth committed Aug 16, 2022
1 parent 1d1e6c6 commit 4f41239
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions reporter-web-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ tasks.addRule("Pattern: yarn<Command>") {

// Prepend the directory of the bootstrapped Node.js to the PATH environment.
environment = environment + mapOf("PATH" to "$nodeBinDir${File.pathSeparator}${environment["PATH"]}")

outputs.cacheIf { true }
}
}
}
Expand Down

0 comments on commit 4f41239

Please sign in to comment.