Fixed an issue with fetching latest vLLM code

This commit is contained in:
Eugene Rakhmatulin
2026-02-11 22:35:49 -08:00
parent 3b1e49dcb0
commit da4185cb12
2 changed files with 12 additions and 15 deletions

View File

@@ -119,12 +119,11 @@ RUN --mount=type=cache,id=repo-cache,target=/repo-cache \
else \ else \
echo "Cache hit: Fetching flashinfer updates..." && \ echo "Cache hit: Fetching flashinfer updates..." && \
cd flashinfer && \ cd flashinfer && \
git fetch --all && \ git fetch origin && \
git checkout ${FLASHINFER_REF} && \ git fetch origin --tags && \
if [ "${FLASHINFER_REF}" = "main" ]; then \ (git checkout --detach origin/${FLASHINFER_REF} 2>/dev/null || git checkout ${FLASHINFER_REF}) && \
git reset --hard origin/main; \
fi && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
git clean -fdx && \
# Optimize git repo size # Optimize git repo size
git gc --auto; \ git gc --auto; \
fi && \ fi && \
@@ -177,12 +176,11 @@ RUN --mount=type=cache,id=repo-cache,target=/repo-cache \
else \ else \
echo "Cache hit: Fetching updates..." && \ echo "Cache hit: Fetching updates..." && \
cd vllm && \ cd vllm && \
git fetch --all && \ git fetch origin && \
git checkout ${VLLM_REF} && \ git fetch origin --tags && \
if [ "${VLLM_REF}" = "main" ]; then \ (git checkout --detach origin/${VLLM_REF} 2>/dev/null || git checkout ${VLLM_REF}) && \
git reset --hard origin/main; \
fi && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
git clean -fdx && \
# Optimize git repo size # Optimize git repo size
git gc --auto; \ git gc --auto; \
fi && \ fi && \

View File

@@ -183,12 +183,11 @@ RUN --mount=type=cache,id=repo-cache,target=/repo-cache \
else \ else \
echo "Cache hit: Fetching updates..." && \ echo "Cache hit: Fetching updates..." && \
cd vllm-mxfp4 && \ cd vllm-mxfp4 && \
git fetch --all && \ git fetch origin && \
git checkout ${VLLM_SHA} && \ git fetch origin --tags && \
if [ "${VLLM_SHA}" = "main" ]; then \ (git checkout --detach origin/${VLLM_SHA} 2>/dev/null || git checkout ${VLLM_SHA}) && \
git reset --hard origin/main; \
fi && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
git clean -fdx && \
# Optimize git repo size # Optimize git repo size
git gc --auto; \ git gc --auto; \
fi && \ fi && \