mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
detect missing sandbox image and provide useful error message (#174)
This commit is contained in:
@@ -24,6 +24,12 @@ CMD=$(scripts/sandbox_command.sh)
|
||||
IMAGE=gemini-code-sandbox
|
||||
DEBUG_PORT=9229
|
||||
|
||||
# stop if image is missing
|
||||
if ! $CMD images -q "$IMAGE" | grep -q .; then
|
||||
echo "ERROR: $IMAGE is missing. Try \`npm run build\` with sandboxing enabled."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
PROJECT=$(basename "$PWD")
|
||||
WORKDIR=/sandbox/$PROJECT
|
||||
CLI_PATH=/usr/local/share/npm-global/lib/node_modules/\@gemini-code/cli
|
||||
|
||||
Reference in New Issue
Block a user