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