Skip to content

Commit 63d72b9

Browse files
authored
fix(ci): PowerShell variable-reference parse error in Windows verify (#201)
The 'Verify windows-latest' step in the release workflow failed on the v0.7.3 tag with a PowerShell ParserError: Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to delimit the name. PowerShell treats $archive: as scoped-variable syntax (like $env:PATH), so the throw-message string interpolation broke. Wrap the interpolated variables in ${} explicitly. The v0.7.3 release itself is unaffected — goreleaser published all 13 assets correctly. This fix prevents the same failure on future releases.
1 parent b049d98 commit 63d72b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ jobs:
129129
if (-not $expectedLine) { throw "no checksum entry for $archive in checksums.txt" }
130130
$expected = ($expectedLine -split '\s+')[0].ToLower()
131131
$actual = (Get-FileHash -Algorithm SHA256 $archive).Hash.ToLower()
132-
if ($expected -ne $actual) { throw "checksum mismatch for $archive: expected $expected, got $actual" }
132+
if ($expected -ne $actual) { throw "checksum mismatch for ${archive}: expected ${expected}, got ${actual}" }
133133
Write-Host "Checksum verified for $archive"
134134
135135
Expand-Archive -Path $archive -DestinationPath .

0 commit comments

Comments
 (0)