mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-11 19:56:03 +00:00
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.
This commit is contained in:
parent
5c76f20e16
commit
bbaed611b2
1 changed files with 1 additions and 0 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue