From fb6d76ec2f684fe8e4964bd2a8cb355277645d02 Mon Sep 17 00:00:00 2001 From: T3 Code PR Stack <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 23 Nov 2026 07:33:32 +0100 Subject: [PATCH] fix(mobile): ship the Apple Speech source that the iOS module symlinks to TestFlight builds stopped after the rebuild: every iOS EAS production build since then (2.3.0 builds 91-93) failed in Install pods with ENOENT for apps/mobile/modules/t3-voice-transcription/ios/AppleSpeechEngine.swift. Upstream #34027 made that file a symlink to native/apple-speech/, and the fork's .easignore drops /native/* except libghostty-vt, so the archive held a dangling link. Keep /native/apple-speech in the archive, and test that every tracked mobile symlink's target stays in it. Model: claude-opus-5-5; harness: Claude Code. Co-Authored-By: Claude Opus 5.5 --- .easignore | 2 ++ scripts/easignore.test.ts | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/.easignore b/.easignore index ee1df5a09c73..1c0b8f353d8c 100644 --- a/.easignore +++ b/.easignore @@ -17,6 +17,8 @@ apps/discord-bot/* !/native/libghostty-vt /native/libghostty-vt/* !/native/libghostty-vt/LICENSE +# Mobile native modules symlink their shared sources from here. +!/native/apple-speech release/ release-mock/ dist-electron/ diff --git a/scripts/easignore.test.ts b/scripts/easignore.test.ts index fe07be905713..cead3ade4e0d 100644 --- a/scripts/easignore.test.ts +++ b/scripts/easignore.test.ts @@ -106,4 +106,43 @@ describe("EAS archive ignore rules", () => { NodeFS.rmSync(fixtureRoot, { force: true, recursive: true }); } }); + + it("keeps the target of every tracked mobile symlink in the archive", () => { + const fixtureRoot = NodeFS.mkdtempSync(NodePath.join(NodeOS.tmpdir(), "t3-easignore-")); + + try { + NodeChildProcess.execFileSync("git", ["init", "--quiet"], { + cwd: fixtureRoot, + stdio: "ignore", + }); + NodeFS.copyFileSync( + NodePath.join(repositoryRoot, ".easignore"), + NodePath.join(fixtureRoot, ".gitignore"), + ); + const symlinks = NodeChildProcess.execFileSync("git", ["ls-files", "-s", "apps/mobile"], { + cwd: repositoryRoot, + encoding: "utf8", + }) + .split("\n") + .filter((line) => line.startsWith("120000 ")) + .map((line) => line.slice(line.indexOf("\t") + 1)); + expect(symlinks.length).toBeGreaterThan(0); + + for (const link of symlinks) { + const target = NodePath.relative( + repositoryRoot, + NodePath.resolve( + repositoryRoot, + NodePath.dirname(link), + NodeFS.readlinkSync(NodePath.join(repositoryRoot, link)), + ), + ); + NodeFS.mkdirSync(NodePath.dirname(NodePath.join(fixtureRoot, target)), { recursive: true }); + NodeFS.writeFileSync(NodePath.join(fixtureRoot, target), "fixture\n"); + expect(isIgnored(fixtureRoot, target), `${link} -> ${target}`).toBe(false); + } + } finally { + NodeFS.rmSync(fixtureRoot, { force: true, recursive: true }); + } + }); });