summaryrefslogtreecommitdiff
path: root/packages/cli/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/cli/src')
-rw-r--r--packages/cli/src/utils/sandbox.ts17
1 files 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)
+ },
},
- });
+ );
}
}