From 632b5bb2e8ed4e1d45c3db95616b86565c8f55bf Mon Sep 17 00:00:00 2001 From: Dylan Conway Date: Thu, 12 Feb 2026 17:17:32 -0800 Subject: [PATCH] Make cygwin install non-fatal Cygwin mirror can be unreachable from Azure VMs. Don't block the entire bootstrap if cygwin fails to install. [build images] --- scripts/bootstrap.ps1 | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/bootstrap.ps1 b/scripts/bootstrap.ps1 index b33169152d..6011492ba6 100755 --- a/scripts/bootstrap.ps1 +++ b/scripts/bootstrap.ps1 @@ -246,11 +246,16 @@ function Install-Make { } function Install-Cygwin { - Install-Scoop-Package cygwin - # Scoop installs to ~/scoop/apps/cygwin/current - $cygwinBin = Join-Path $env:USERPROFILE "scoop\apps\cygwin\current\bin" - if (Test-Path $cygwinBin) { - Add-To-Path $cygwinBin -Scope User + # Cygwin's default mirror (mirrors.kernel.org) can be unreachable from Azure. + # Make this non-fatal — the build will fail later if cygwin is actually needed. + try { + Install-Scoop-Package cygwin + $cygwinBin = Join-Path $env:USERPROFILE "scoop\apps\cygwin\current\bin" + if (Test-Path $cygwinBin) { + Add-To-Path $cygwinBin -Scope User + } + } catch { + Write-Warning "Cygwin installation failed (non-fatal): $_" } }