Skip to content

Commit

Permalink
use global composer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
n-g committed Mar 5, 2024
1 parent 147c37d commit 8b7d50e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ async function resolveCacheMode(cacheMode: string): Promise<utils.CachePath[]> {

case "composer": {
const composerCache = await getExecStdout(
"composer config cache-files-dir"
"composer config --global cache-files-dir"
);
return [{ mountTarget: composerCache, framework: cacheMode }];
}
Expand Down

0 comments on commit 8b7d50e

Please sign in to comment.