From 8b7d50e3a9dbdf0570661fa478c4fb34a8cb6985 Mon Sep 17 00:00:00 2001 From: Niklas Gehlen Date: Tue, 5 Mar 2024 18:44:00 +0100 Subject: [PATCH] use global composer cache --- dist/index/index.js | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index/index.js b/dist/index/index.js index ac93993..0604ae0 100644 --- a/dist/index/index.js +++ b/dist/index/index.js @@ -27353,7 +27353,7 @@ async function resolveCacheMode(cacheMode) { case "maven": return [{ mountTarget: "~/.m2/repository", framework: cacheMode }]; case "composer": { - const composerCache = await getExecStdout("composer config cache-files-dir"); + const composerCache = await getExecStdout("composer config --global cache-files-dir"); return [{ mountTarget: composerCache, framework: cacheMode }]; } default: diff --git a/src/index.ts b/src/index.ts index ac3304c..a00b008 100644 --- a/src/index.ts +++ b/src/index.ts @@ -189,7 +189,7 @@ async function resolveCacheMode(cacheMode: string): Promise { case "composer": { const composerCache = await getExecStdout( - "composer config cache-files-dir" + "composer config --global cache-files-dir" ); return [{ mountTarget: composerCache, framework: cacheMode }]; }