Skip to content

Commit 8207292

Browse files
committed
test(installer): normalize manifest fixture encoding
1 parent 104c50c commit 8207292

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/smoke/install-smoke.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ try {
125125
latestPrerelease = $BetaVersion
126126
releases = @($betaEntry, $stableEntry)
127127
}
128-
$manifest | ConvertTo-Json -Depth 8 | Set-Content -Path (Join-Path $Serve "manifest.json") -Encoding utf8
128+
# The fixture is ASCII-only. Windows PowerShell 5.1 writes a BOM for
129+
# -Encoding UTF8 while PowerShell 7 does not, so use an identical encoding.
130+
$manifest | ConvertTo-Json -Depth 8 | Set-Content -Path (Join-Path $Serve "manifest.json") -Encoding ascii
129131

130132
# 4. Serve the manifest + archives from localhost
131133
$python = Get-Command python3 -ErrorAction SilentlyContinue

0 commit comments

Comments
 (0)