also looking at this
fix(native): preserve workspace sources and native overlay lifecycle
#384
20 files
+500
-227
Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.
| @@ -6,6 +6,10 @@ import { cpus } from 'node:os' | ||
| 6 | 6 | |
| 7 | 7 | const source = resolve(import.meta.dir, '..') |
| 8 | 8 | const zig = resolveZig(source) |
| 9 | if (process.platform === 'win32') { | |
| 10 | const provenance = Bun.spawnSync(['pwsh', '-NoProfile', '-NonInteractive', '-File', join(source, 'scripts/inspect-windows-source.ps1'), '-Stage', 'compiler'], { cwd: source, stdout: 'pipe', stderr: 'pipe' }) | |
| 11 | console.log('Source after compiler:', provenance.stdout.toString(), provenance.stderr.toString()) | |
| 12 | } | |
| 9 | 13 | const trackedBuild = join(source, 'packages/zig/build.zig') |
| 10 | 14 | console.log('Tracked core project:', JSON.stringify({ file: trackedBuild, exists: existsSync(trackedBuild), sha256: existsSync(trackedBuild) ? createHash('sha256').update(readFileSync(trackedBuild)).digest('hex') : null, bun: Bun.version, executable: process.execPath, cpu: cpus()[0]?.model, platform: process.platform })) |
| 11 | 15 | const zigLibrary = join(dirname(realpathSync(zig.path)), 'lib/std/zig.zig') |