Report actual native tool pin mismatches

This commit is contained in:
Marc
2026-10-19 08:57:41 +02:00
parent 99dca35158
commit 1648ccf96e
+3 -2
View File
@@ -101,8 +101,9 @@ foreach ($file in $pins.windows.native_files) {
default { throw "Unknown native-tool input base '$($file.base)'." }
}
$path = Join-Path $base $file.path
if ((Get-FileHash -LiteralPath $path -Algorithm SHA256).Hash -ne $file.sha256) {
throw "The accepted MSVC/SDK input differs at '$($file.path)'."
$actualHash = (Get-FileHash -LiteralPath $path -Algorithm SHA256).Hash
if ($actualHash -ne $file.sha256) {
throw "The accepted MSVC/SDK input differs at '$($file.path)' (expected '$($file.sha256)', found '$actualHash')."
}
}