Skip to content

Instantly share code, notes, and snippets.

@maxisam
Forked from Jordan-Hall/nx+19.8.2.patch
Created November 1, 2024 20:06
Show Gist options
  • Save maxisam/ebb0a06abe6fa8bd3bcba3b635f7a4fb to your computer and use it in GitHub Desktop.
Save maxisam/ebb0a06abe6fa8bd3bcba3b635f7a4fb to your computer and use it in GitHub Desktop.
Community remote cache support
diff --git a/node_modules/nx/src/tasks-runner/cache.js b/node_modules/nx/src/tasks-runner/cache.js
index 36a7089..a1b7809 100644
--- a/node_modules/nx/src/tasks-runner/cache.js
+++ b/node_modules/nx/src/tasks-runner/cache.js
@@ -110,7 +110,8 @@ class DbCache {
}
}
else {
- return ((await this.getPowerpackS3Cache()) ??
+ return ((await this.getPowerpackCache(nxJson.communityCache)) ??
+ (await this.getPowerpackS3Cache()) ??
(await this.getPowerpackSharedCache()) ??
null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment