From 3fce19869540509ddf24f64f984efcfc3073c9a1 Mon Sep 17 00:00:00 2001 From: Vijay Janapa Reddi Date: Wed, 4 Mar 2026 15:07:03 -0500 Subject: [PATCH] Fix PowerShell quoting in Windows container verification Replace double-quoted string interpolation in throw statement with -f format operator to prevent Docker RUN flattening from stripping quotes and causing PowerShell parse errors. --- book/docker/windows/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/docker/windows/Dockerfile b/book/docker/windows/Dockerfile index fdfcab65c..450ec3cbd 100644 --- a/book/docker/windows/Dockerfile +++ b/book/docker/windows/Dockerfile @@ -307,7 +307,7 @@ RUN Write-Host '=== FINAL VERIFICATION ===' ; ` Write-Host "Checking $($tool.Name)..." ; ` try { ` $out = & $tool.Cmd $tool.Args 2>&1 | Select-Object -First 1 ; ` - if ($LASTEXITCODE -ne 0) { throw "$($tool.Cmd) exited with $LASTEXITCODE" } ; ` + if ($LASTEXITCODE -ne 0) { throw ('{0} exited with {1}' -f $tool.Cmd, $LASTEXITCODE) } ; ` Write-Host " $out" ; ` Write-Host "✅ $($tool.Name) verified" ; ` } catch { `