From e1d8a356b04e75b8cd991405e9844e72cb8b8ba5 Mon Sep 17 00:00:00 2001 From: Jordan Demeulenaere Date: Thu, 12 Jun 2025 19:38:10 +0200 Subject: [PATCH] Fix build_sandbox command (#974) --- packages/cli/src/utils/sandbox.ts | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index 0cb1eb54..b8386161 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -366,7 +366,7 @@ export async function start_sandbox(sandbox: string) { const workdir = path.resolve(process.cwd()); const containerWorkdir = getContainerPath(workdir); - // if BUILD_SANDBOX is set, then call scripts/build_sandbox.sh under gemini-cli repo + // if BUILD_SANDBOX is set, then call scripts/build_sandbox.js under gemini-cli repo // // note this can only be done with binary linked from gemini-cli repo if (process.env.BUILD_SANDBOX) { @@ -389,13 +389,16 @@ export async function start_sandbox(sandbox: string) { console.error(`using ${projectSandboxDockerfile} for sandbox`); buildArgs += `-f ${path.resolve(projectSandboxDockerfile)} -i ${image}`; } - execSync(`cd ${gcRoot} && scripts/build_sandbox.sh -s ${buildArgs}`, { - stdio: 'inherit', - env: { - ...process.env, - GEMINI_SANDBOX: sandbox, // in case sandbox is enabled via flags (see config.ts under cli package) + execSync( + `cd ${gcRoot} && node scripts/build_sandbox.js -s ${buildArgs}`, + { + stdio: 'inherit', + env: { + ...process.env, + GEMINI_SANDBOX: sandbox, // in case sandbox is enabled via flags (see config.ts under cli package) + }, }, - }); + ); } }