mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
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)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user