From 3aa3937560c4e1abc30bd89e617670436a99cfc1 Mon Sep 17 00:00:00 2001 From: Charlie Doern Date: Mon, 24 Feb 2025 11:06:03 -0500 Subject: [PATCH] fix: build_venv expects an extra argument currently, build_venv.sh expects a `distribution_type` as the first argument but the only things ever passed are: 1. image name 2. pip dependencies so distribution_type is never passed in meaning the script errors when calling something like: `llama stack build --image-type venv --template ollama --image-name test` Signed-off-by: Charlie Doern --- llama_stack/distribution/build_venv.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llama_stack/distribution/build_venv.sh b/llama_stack/distribution/build_venv.sh index 52c5c7051..b1e6ac699 100755 --- a/llama_stack/distribution/build_venv.sh +++ b/llama_stack/distribution/build_venv.sh @@ -26,8 +26,8 @@ if [ -n "$LLAMA_MODELS_DIR" ]; then fi if [ "$#" -lt 2 ]; then - echo "Usage: $0 []" >&2 - echo "Example: $0 mybuild ./my-stack-build.yaml 'numpy pandas scipy'" >&2 + echo "Usage: $0 []" >&2 + echo "Example: $0 mybuild ./my-stack-build.yaml 'numpy pandas scipy'" >&2 exit 1 fi