fix(ci): unset UV index env vars before distribution deps install

Explicitly unset UV_EXTRA_INDEX_URL and UV_INDEX_STRATEGY before installing
distribution dependencies to ensure they only use PyPI (not test.pypi).

This prevents UV from using any residual index configuration from the
llama-stack installation step which could cause it to look for packages
on test.pypi where binary wheels may not be available.
This commit is contained in:
Ashwin Bharambe 2025-10-31 10:34:15 -07:00
parent e19979ae29
commit 350d5449bd

View file

@ -103,7 +103,9 @@ RUN set -eux; \
fi;
# Install the dependencies for the distribution
# Explicitly unset UV index env vars to ensure we only use PyPI for distribution deps
RUN set -eux; \
unset UV_EXTRA_INDEX_URL UV_INDEX_STRATEGY; \
if [ -z "$DISTRO_NAME" ]; then \
echo "DISTRO_NAME must be provided" >&2; \
exit 1; \