Skip to content

Commit 6238c10

Browse files
mode=xcode: Only cache CompilationCache directory.
Caching ModuleCache is not safe across runs on different machines/baseimages.
1 parent 5e5a55d commit 6238c10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29900,7 +29900,7 @@ async function resolveCacheMode(cacheMode, cachesXcode) {
2990029900
return [
2990129901
{
2990229902
// Consider: `defaults read com.apple.dt.Xcode.plist IDECustomDerivedDataLocation`
29903-
mountTarget: "~/Library/Developer/Xcode/DerivedData",
29903+
mountTarget: "~/Library/Developer/Xcode/DerivedData/CompilationCache.noindex",
2990429904
framework: cacheMode,
2990529905
},
2990629906
];

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ async function resolveCacheMode(
301301
return [
302302
{
303303
// Consider: `defaults read com.apple.dt.Xcode.plist IDECustomDerivedDataLocation`
304-
mountTarget: "~/Library/Developer/Xcode/DerivedData",
304+
mountTarget: "~/Library/Developer/Xcode/DerivedData/CompilationCache.noindex",
305305
framework: cacheMode,
306306
},
307307
];

0 commit comments

Comments
 (0)