fix(engine): disable Corepack download prompt in verification spawns
Non-TTY children spawned by the verification runner hung until the hard timeout when Corepack prompted before fetching a pinned packageManager version. Set COREPACK_ENABLE_DOWNLOAD_PROMPT=0 in the spawn env so the fetch proceeds (or fails fast) without waiting on stdin. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -184,7 +184,13 @@ export async function runVerificationCommand(
|
||||
const child = spawn(command, {
|
||||
cwd,
|
||||
stdio: ["ignore", "pipe", "pipe"],
|
||||
env: { ...process.env },
|
||||
env: {
|
||||
...process.env,
|
||||
// Corepack otherwise prompts interactively before fetching a pinned
|
||||
// packageManager version, which hangs the non-TTY child until the
|
||||
// hard timeout. Disable the prompt so it proceeds (or errors fast).
|
||||
COREPACK_ENABLE_DOWNLOAD_PROMPT: "0",
|
||||
},
|
||||
shell: true,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user