Skip to content

Commit e856833

Browse files
fix(mobile): native client fingerprints match across macOS and Linux
Generated android/ios projects and the Expo config's extra section (env- specific values a dev client reads from Metro) changed the hash per machine, so a Linux VM never found a Mac's build in the shared cache. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 888a3d4 commit e856833

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/mobile-native-client.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ const command = Effect.fn("nativeClient.command")(function* (
226226
const fingerprint = Effect.fn("nativeClient.fingerprint")(function* (platform: NativePlatform) {
227227
const output = yield* command(yield* HostProcess.ExecutablePath, [
228228
"--eval",
229-
`require('expo/fingerprint').createFingerprintAsync(process.cwd(), { platforms: [process.argv[1]], silent: true }).then(fp => console.log('T3_NATIVE_FINGERPRINT=' + fp.hash)).catch(e => { console.error(e); process.exitCode = 1; });`,
229+
// Same hash on every machine: generated native projects and the config's `extra` (env-specific
230+
// values a dev client reads from Metro) stay out, so a Mac and a Linux VM share builds.
231+
`const f = require('expo/fingerprint'); f.createFingerprintAsync(process.cwd(), { platforms: [process.argv[1]], silent: true, ignorePaths: ['android/**', 'ios/**'], sourceSkips: f.DEFAULT_SOURCE_SKIPS | f.SourceSkips.ExpoConfigExtraSection }).then(fp => console.log('T3_NATIVE_FINGERPRINT=' + fp.hash)).catch(e => { console.error(e); process.exitCode = 1; });`,
230232
platform,
231233
]);
232234
const hash = output

0 commit comments

Comments
 (0)