From 206a8183190e81d3266084457e619553551c1252 Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Thu, 11 Nov 2021 00:54:32 -0800 Subject: [PATCH] Perform a full clone of vcpkg instead of depth=1 (#4272) The vcpkg versioning feature relies on retrieving information from its git repository history. This means users need a deep clone. --- images/linux/scripts/installers/vcpkg.sh | 2 +- images/win/scripts/Installers/Install-Vcpkg.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/images/linux/scripts/installers/vcpkg.sh b/images/linux/scripts/installers/vcpkg.sh index 5d609fecd..731de8b1b 100644 --- a/images/linux/scripts/installers/vcpkg.sh +++ b/images/linux/scripts/installers/vcpkg.sh @@ -9,7 +9,7 @@ VCPKG_INSTALLATION_ROOT=/usr/local/share/vcpkg echo "VCPKG_INSTALLATION_ROOT=${VCPKG_INSTALLATION_ROOT}" | tee -a /etc/environment # Install vcpkg -git clone --depth=1 https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT +git clone https://github.com/Microsoft/vcpkg $VCPKG_INSTALLATION_ROOT $VCPKG_INSTALLATION_ROOT/bootstrap-vcpkg.sh $VCPKG_INSTALLATION_ROOT/vcpkg integrate install diff --git a/images/win/scripts/Installers/Install-Vcpkg.ps1 b/images/win/scripts/Installers/Install-Vcpkg.ps1 index 4360b2d35..76e7d24f5 100644 --- a/images/win/scripts/Installers/Install-Vcpkg.ps1 +++ b/images/win/scripts/Installers/Install-Vcpkg.ps1 @@ -7,7 +7,7 @@ $Uri = 'https://github.com/Microsoft/vcpkg.git' $InstallDir = 'C:\vcpkg' $VcpkgExecPath = 'vcpkg.exe' -git clone --depth=1 $Uri $InstallDir -q +git clone $Uri $InstallDir -q # Build and integrate vcpkg Invoke-Expression "$InstallDir\bootstrap-vcpkg.bat"