mirror of
https://github.com/morluto/rea.git
synced 2026-11-16 19:53:50 +00:00
refactor(process): require the platform for environment snapshots instead of reading the host (#11028)
This commit is contained in:
1 parent
4126698407
commit
5cfaac0834
34 files changed
+156
-51
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import { snapshotEnvironment } from "../../process/snapshotEnvironment.js";
|
||||
import { HOST_PLATFORM } from "../../platform/HostPlatform.js";
|
||||
import { mkdir, mkdtemp, rm } from "node:fs/promises";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join } from "node:path";
|
||||
@@ -104,7 +105,10 @@ export class WakaruProvider implements JavaScriptRecoveryPort {
|
||||
const pending = await this.#retire();
|
||||
if (pending !== undefined) return err(pending);
|
||||
// Capture configuration after queue/cleanup admission; later requests may select updates.
|
||||
const environment = snapshotEnvironment(this.environment);
|
||||
const environment = snapshotEnvironment(
|
||||
this.environment,
|
||||
HOST_PLATFORM.platform,
|
||||
);
|
||||
let root: string | undefined;
|
||||
let tree: SafeOutputTree | undefined;
|
||||
let failed: { readonly cause: unknown } | undefined;
|
||||
|
||||
Reference in new issue
Block a user