Skip to content

Commit ddb4e25

Browse files
authored
chore: retrieve repo via vcpkg by commit hash (#6829)
* chore: retrieve repo via vcpkg by commit hash
1 parent 9bef6ba commit ddb4e25

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

ci/cloudbuild/builds/lib/vcpkg.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,16 @@ source module ci/lib/io.sh
2424

2525
TIMEFORMAT="==> 🕑 vcpkg installed in %R seconds"
2626
time {
27-
VCPKG_RELEASE_VERSION="2021.05.12"
27+
VCPKG_RELEASE_VERSION="6e024e744e7717c06ddacd5089401109c6298553"
2828
VCPKG_ROOT_DIR="${HOME}/vcpkg-${VCPKG_RELEASE_VERSION}"
2929
io::log_h2 "Installing vcpkg ${VCPKG_RELEASE_VERSION} -> ${VCPKG_ROOT_DIR}"
3030
if [[ ! -d "${VCPKG_ROOT_DIR}" ]]; then
3131
mkdir -p "${VCPKG_ROOT_DIR}"
3232
# vcpkg needs git history to support versioning, so we clone a recent
3333
# release tag rather than just extracting a tarball without history.
34-
git clone https://github.com/microsoft/vcpkg.git "${VCPKG_ROOT_DIR}" \
35-
-b "${VCPKG_RELEASE_VERSION}"
34+
git clone https://github.com/microsoft/vcpkg.git "${VCPKG_ROOT_DIR}"
35+
git -C "${VCPKG_ROOT_DIR}" checkout "${VCPKG_RELEASE_VERSION}"
36+
pwd
3637
fi
3738
env -C "${VCPKG_ROOT_DIR}" CC="ccache ${CC}" CXX="ccache ${CXX}" \
3839
./bootstrap-vcpkg.sh

ci/kokoro/macos/builds/quickstart-cmake.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ brew list --versions pkg-config || brew install pkg-config
3131
vcpkg_dir="${HOME}/vcpkg-quickstart"
3232
mkdir -p "${vcpkg_dir}"
3333
io::log "Downloading vcpkg into ${vcpkg_dir}..."
34-
curl -sSL "https://github.com/microsoft/vcpkg/archive/2021.05.12.tar.gz" |
34+
curl -sSL "https://github.com/microsoft/vcpkg/archive/6e024e744e7717c06ddacd5089401109c6298553.tar.gz" |
3535
tar -C "${vcpkg_dir}" --strip-components=1 -zxf -
3636
(
3737
cd "${vcpkg_dir}"

ci/kokoro/windows/build-cmake-dependencies.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if ($args.count -ge 1) {
4848
$vcpkg_flags=("--triplet", "${env:VCPKG_TRIPLET}")
4949
}
5050
$vcpkg_dir = "cmake-out\${vcpkg_base}"
51-
$vcpkg_version = "2021.05.12"
51+
$vcpkg_version = "6e024e744e7717c06ddacd5089401109c6298553"
5252
$Env:VCPKG_FEATURE_FLAGS = "-manifests"
5353

5454
New-Item -ItemType Directory -Path "cmake-out" -ErrorAction SilentlyContinue

0 commit comments

Comments
 (0)