Fixed initial vllm source fetch if not using main branch
This commit is contained in:
@@ -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 && \
|
||||||
|
|||||||
Reference in New Issue
Block a user