Skip to content

Commit 3855556

Browse files
authored
ci: update vcpkg url regex (#15998)
1 parent 0dcc03b commit 3855556

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ci/kokoro/lib/vcpkg.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ install_vcpkg() {
3232
io::log "Downloading vcpkg into ${vcpkg_dir}..."
3333
VCPKG_VERSION="$(<ci/etc/vcpkg-version.txt)"
3434
url="https://github.com/microsoft/vcpkg/archive/${VCPKG_VERSION}.tar.gz"
35-
if [[ "${VCPKG_VERSION}" =~ [0-9]{4}.[0-9]{2}.[0-9]{2} ]]; then
35+
if [[ "${VCPKG_VERSION}" =~ [0-9]{4}\.[0-9]{2}\.[0-9]{2} ]]; then
3636
# vcpkg uses date-like tags for releases
3737
url="https://github.com/microsoft/vcpkg/archive/refs/tags/${VCPKG_VERSION}.tar.gz"
3838
fi

ci/kokoro/windows/lib/vcpkg.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function Install-Vcpkg {
6969

7070
$vcpkg_version = Get-Content -Path "${project_root}\ci\etc\vcpkg-version.txt"
7171
$vcpkg_url = "https://github.com/microsoft/vcpkg/archive/${vcpkg_version}.zip"
72-
if ($vcpkg_version -match "[0-9]{4}.[0-9]{2}.[0-9]{2}" ) {
72+
if ($vcpkg_version -match "[0-9]{4}\.[0-9]{2}\.[0-9]{2}" ) {
7373
$vcpkg_url = "https://github.com/microsoft/vcpkg/archive/refs/tags/${vcpkg_version}.zip"
7474
}
7575
Write-Host "$(Get-Date -Format o) Downloading vcpkg archive from $vcpkg_url"

0 commit comments

Comments
 (0)