georgi
10/22/2024, 8:57 PM--mutex file|network
flag to KotlinNpmInstallTask
to effectively tell yarn to only use one instance?
Context
I have a multi-module composite build KotlinJS gradle project where I'd like to have a GitHub Action to run all unit tests via ./gradlew jsTest
. I'm able to run this locally just fine but on the CI it fails with a bunch of cache-related errors like
error <https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.1.tgz>: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, stat '/home/runner/.cache/yarn/v6/npm-raw-body-2.5.1-fe1b1628b181b700215e5fd42389f98b71392857-integrity/node_modules/raw-body/LICENSE'"
which led me to this issue and made me think that I'm hitting the same scenario. When I run the unit tests individually per project, they pass on the CI correctly. I am unsure why this works locally too 🤔georgi
10/22/2024, 8:57 PMtasks.withType<KotlinNpmInstallTask> {
args += "--mutex file"
}
hfhbd
10/22/2024, 9:25 PMgeorgi
10/22/2024, 9:36 PMgeorgi
10/22/2024, 9:37 PM