From 58fe7d7b59f5e4d3564bda93c7fd8615b710a3cc Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Fri, 31 Oct 2025 10:08:33 -0700 Subject: [PATCH] fix: only set UV_INDEX_STRATEGY when UV_EXTRA_INDEX_URL is also set When UV_EXTRA_INDEX_URL is empty (on main branch), we shouldn't set UV_INDEX_STRATEGY at all, even to an empty value. UV interprets an empty UV_INDEX_STRATEGY env var as requiring a value, causing errors. --- containers/Containerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/containers/Containerfile b/containers/Containerfile index 55ca7afc9..2116fecc0 100644 --- a/containers/Containerfile +++ b/containers/Containerfile @@ -81,7 +81,7 @@ RUN set -eux; \ echo "INSTALL_MODE=editable requires LLAMA_STACK_DIR to point to a directory inside the build context" >&2; \ exit 1; \ fi; \ - if [ -n "$UV_EXTRA_INDEX_URL" ]; then \ + if [ -n "$UV_EXTRA_INDEX_URL" ] && [ -n "$UV_INDEX_STRATEGY" ]; then \ UV_EXTRA_INDEX_URL="$UV_EXTRA_INDEX_URL" UV_INDEX_STRATEGY="$UV_INDEX_STRATEGY" \ uv pip install --no-cache-dir -e "$LLAMA_STACK_DIR"; \ else \