[windows] Remove Msys2 checksum verification (#12884)

This commit is contained in:
Shamil Mubarakshin
2025-08-25 19:36:35 +02:00
committed by GitHub
parent 2673a3067e
commit 25f533f3b2

View File

@@ -22,13 +22,6 @@ function Install-Msys2 {
Write-Host "Download msys2 installer $installerName" Write-Host "Download msys2 installer $installerName"
$installerPath = Invoke-DownloadWithRetry $downloadUri $installerPath = Invoke-DownloadWithRetry $downloadUri
#region Supply chain security - MSYS2
$externalHash = Get-ChecksumFromUrl -Type "SHA256" `
-Url ($downloadUri -replace $installerName, "msys2-checksums.txt") `
-FileName $installerName
Test-FileChecksum $installerPath -ExpectedSHA256Sum $externalHash
#endregion
Write-Host "Starting msys2 installation" Write-Host "Starting msys2 installation"
& $installerPath in --confirm-command --accept-messages --root C:/msys64 & $installerPath in --confirm-command --accept-messages --root C:/msys64
if ($LastExitCode -ne 0) { if ($LastExitCode -ne 0) {