Skip to content

Commit ab4dd6b

Browse files
committed
Fix vcpkg git fetch in Docker build images
The Docker build images were failing to fetch the vcpkg tag because 'git fetch origin ' doesn't work for git tags. Changed to 'git fetch origin tag ' to properly fetch the annotated tag from the remote repository.
1 parent 7194127 commit ab4dd6b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/docker/linux_amd64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ RUN mkdir /vcpkg && \
5959
cd /vcpkg && \
6060
git init && \
6161
git remote add origin $vcpkg_url && \
62-
git fetch origin $vcpkg_tag && \
62+
git fetch origin tag $vcpkg_tag && \
6363
git checkout $vcpkg_tag && \
6464
./bootstrap-vcpkg.sh
6565
ENV VCPKG_ROOT=/vcpkg

.github/docker/linux_arm64/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ RUN mkdir /vcpkg && \
6262
cd /vcpkg && \
6363
git init && \
6464
git remote add origin $vcpkg_url && \
65-
git fetch origin $vcpkg_tag && \
65+
git fetch origin tag $vcpkg_tag && \
6666
git checkout $vcpkg_tag && \
6767
./bootstrap-vcpkg.sh
6868
ENV VCPKG_ROOT=/vcpkg

0 commit comments

Comments
 (0)