Fixed initial vllm source fetch if not using main branch

This commit is contained in:
Eugene Rakhmatulin
2026-01-30 11:24:51 -08:00
parent 3a68e1ca46
commit be19675980

View File

@@ -141,6 +141,10 @@ RUN --mount=type=cache,id=repo-cache,target=/repo-cache \
if [ ! -d "vllm" ]; then \ if [ ! -d "vllm" ]; then \
echo "Cache miss: Cloning vLLM from scratch..." && \ echo "Cache miss: Cloning vLLM from scratch..." && \
git clone --recursive https://github.com/vllm-project/vllm.git; \ git clone --recursive https://github.com/vllm-project/vllm.git; \
if [ "$VLLM_REF" != "main" ]; then \
cd vllm && \
git checkout ${VLLM_REF}; \
fi; \
else \ else \
echo "Cache hit: Fetching updates..." && \ echo "Cache hit: Fetching updates..." && \
cd vllm && \ cd vllm && \