Skip to content

Commit

Permalink
Do not use a global cache for Node.js (#994)
Browse files Browse the repository at this point in the history
Motivation:

We have seen a weird error message in CI builds.
```
Couldn't follow symbolic link '/home/runner/.gradle/caches/nodejs/server/node-v16.14.0-linux-x64/bin/npx'.
```
We used to use a custom gradle cache key in the CI build workflow. But in the end, we removed it and delegated a cache logic to `gradle/gradle-build-action`. So I think we will use the cached node.js without referring to the glocal cache location.

Modification:

- Remove the custom cache location for Node.js

Result:

Stable CI builds
  • Loading branch information
ikhoon authored and minwoox committed Jul 25, 2024
1 parent e4906dd commit d6c90b9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ node {
npmVersion = '8.5.2'
download = true
npmInstallCommand = "ci"

// Change the cache location under Gradle user home directory so that it's cached by CI.
if (System.getenv('CI') != null) {
workDir = file("${gradle.gradleUserHomeDir}/caches/nodejs/${project.name}")
npmWorkDir = file("${gradle.gradleUserHomeDir}/caches/npm/${project.name}")
}
}

dependencies {
Expand Down

0 comments on commit d6c90b9

Please sign in to comment.