diff options
| author | Olcan <[email protected]> | 2025-06-05 13:02:56 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-05 13:02:56 -0700 |
| commit | d3e43437a00cfe64790cc60c9c8aa82c85f520c3 (patch) | |
| tree | f741d5a857f00c5b6302e1cf306d0264d5e69f27 /packages/cli | |
| parent | e02868bb1a7f62c63e99ba4108e3e8cef3c8108c (diff) | |
use execSync (vs spawnSync) so launch fails if build_sandbox fails; tweaks in build_sandbox to fix some shellcheck warnings, and to simplify the logic slightly (#767)
Diffstat (limited to 'packages/cli')
| -rw-r--r-- | packages/cli/src/utils/sandbox.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index 2b672ef5..5038e702 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -308,9 +308,8 @@ export async function start_sandbox(sandbox: string) { console.error(`using ${projectSandboxDockerfile} for sandbox`); buildArgs += `-s -f ${path.resolve(projectSandboxDockerfile)} -i ${image}`; } - spawnSync(`cd ${gcRoot} && scripts/build_sandbox.sh ${buildArgs}`, { + execSync(`cd ${gcRoot} && scripts/build_sandbox.sh ${buildArgs}`, { stdio: 'inherit', - shell: true, env: { ...process.env, GEMINI_SANDBOX: sandbox, // in case sandbox is enabled via flags (see config.ts under cli package) |
