From d9cf5cd48025c2579b5149c595df5bd351c2d465 Mon Sep 17 00:00:00 2001 From: Ashwin Bharambe Date: Wed, 5 Nov 2025 12:14:02 -0800 Subject: [PATCH] fix(ci): use --no-cache instead of --no-cache-dir (#4081) This is necessary to make sure GPU dockers can be built on CI without running out of space. --- containers/Containerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/containers/Containerfile b/containers/Containerfile index d2d066845..4993d3273 100644 --- a/containers/Containerfile +++ b/containers/Containerfile @@ -47,7 +47,7 @@ RUN set -eux; \ exit 1; \ fi -RUN pip install --no-cache-dir uv +RUN pip install --no-cache uv ENV UV_SYSTEM_PYTHON=1 ENV INSTALL_MODE=${INSTALL_MODE} @@ -72,7 +72,7 @@ RUN set -eux; \ echo "LLAMA_STACK_CLIENT_DIR is set but $LLAMA_STACK_CLIENT_DIR does not exist" >&2; \ exit 1; \ fi; \ - uv pip install --no-cache-dir -e "$LLAMA_STACK_CLIENT_DIR"; \ + uv pip install --no-cache -e "$LLAMA_STACK_CLIENT_DIR"; \ fi; # Install llama-stack @@ -88,22 +88,22 @@ RUN set -eux; \ fi; \ if [ -n "$SAVED_UV_EXTRA_INDEX_URL" ] && [ -n "$SAVED_UV_INDEX_STRATEGY" ]; then \ UV_EXTRA_INDEX_URL="$SAVED_UV_EXTRA_INDEX_URL" UV_INDEX_STRATEGY="$SAVED_UV_INDEX_STRATEGY" \ - uv pip install --no-cache-dir -e "$LLAMA_STACK_DIR"; \ + uv pip install --no-cache -e "$LLAMA_STACK_DIR"; \ else \ - uv pip install --no-cache-dir -e "$LLAMA_STACK_DIR"; \ + uv pip install --no-cache -e "$LLAMA_STACK_DIR"; \ fi; \ elif [ "$INSTALL_MODE" = "test-pypi" ]; then \ - uv pip install --no-cache-dir fastapi libcst; \ + uv pip install --no-cache fastapi libcst; \ if [ -n "$TEST_PYPI_VERSION" ]; then \ - uv pip install --no-cache-dir --extra-index-url https://test.pypi.org/simple/ --index-strategy unsafe-best-match "llama-stack==$TEST_PYPI_VERSION"; \ + uv pip install --no-cache --extra-index-url https://test.pypi.org/simple/ --index-strategy unsafe-best-match "llama-stack==$TEST_PYPI_VERSION"; \ else \ - uv pip install --no-cache-dir --extra-index-url https://test.pypi.org/simple/ --index-strategy unsafe-best-match llama-stack; \ + uv pip install --no-cache --extra-index-url https://test.pypi.org/simple/ --index-strategy unsafe-best-match llama-stack; \ fi; \ else \ if [ -n "$PYPI_VERSION" ]; then \ - uv pip install --no-cache-dir "llama-stack==$PYPI_VERSION"; \ + uv pip install --no-cache "llama-stack==$PYPI_VERSION"; \ else \ - uv pip install --no-cache-dir llama-stack; \ + uv pip install --no-cache llama-stack; \ fi; \ fi; @@ -117,7 +117,7 @@ RUN set -eux; \ fi; \ deps="$(llama stack list-deps "$DISTRO_NAME")"; \ if [ -n "$deps" ]; then \ - printf '%s\n' "$deps" | xargs -L1 uv pip install --no-cache-dir; \ + printf '%s\n' "$deps" | xargs -L1 uv pip install --no-cache; \ fi # Cleanup