From bbaed611b21f57664ba05dbffbbd1ff156e3feae Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Fri, 31 Oct 2025 11:55:59 -0700 Subject: [PATCH] fix: explicitly unset UV index vars when not in use Docker BuildKit makes ARG values available as environment variables in RUN commands. This means UV sees UV_INDEX_STRATEGY even when empty and complains. Explicitly unset these vars in the else branch to prevent UV from seeing them. --- containers/Containerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/containers/Containerfile b/containers/Containerfile index e02f1e564..41001e9c2 100644 --- a/containers/Containerfile +++ b/containers/Containerfile @@ -85,6 +85,7 @@ RUN set -eux; \ 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 \ + unset UV_EXTRA_INDEX_URL UV_INDEX_STRATEGY; \ uv pip install --no-cache-dir -e "$LLAMA_STACK_DIR"; \ fi; \ elif [ "$INSTALL_MODE" = "test-pypi" ]; then \