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 }]; }