From ded6f9c36204f7d1e0ef808fe86fc27fc2ddc0b1 Mon Sep 17 00:00:00 2001 From: Charles Zablit Date: Fri, 19 Dec 2025 14:47:55 +0100 Subject: [PATCH] [windows] fix sccache regex --- utils/build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/build.ps1 b/utils/build.ps1 index 0318f6aaf374..ebad9693b7c9 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -1370,7 +1370,7 @@ function Get-Dependencies { if ($EnableCaching) { $SCCache = Get-SCCache - $FileExtension = if ($SCCache.URL -match '/[^/]+(\..+)$') { $Matches[1] } else { + $FileExtension = if ($SCCache.URL -match '\.(?:tar\.gz|zip)$') { $Matches[0] } else { throw "Invalid sccache URL" } DownloadAndVerify $SCCache.URL "$BinaryCache\sccache-$SCCacheVersion$FileExtension" $SCCache.SHA256