From 008def2ff467256b273254a3d7430a7499ddae3e Mon Sep 17 00:00:00 2001 From: "Rune K. Svendsen" Date: Wed, 20 Dec 2023 10:26:42 +0100 Subject: [PATCH] Add comment about why we ignore this error --- scripts/bootstrap/bootstrap-haskell.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/bootstrap/bootstrap-haskell.ps1 b/scripts/bootstrap/bootstrap-haskell.ps1 index 33b51f7..8907b7c 100644 --- a/scripts/bootstrap/bootstrap-haskell.ps1 +++ b/scripts/bootstrap/bootstrap-haskell.ps1 @@ -476,6 +476,8 @@ if (!(Test-Path -Path ('{0}' -f $MsysDir))) { Print-Msg -msg 'Extracting Msys2 archive...' $null = & "$archivePath" '-y' ('-o{0}' -f $GhcupDir) # Extract + # We ignore errors because we don't want the installation script to fail just because a temporary file can't be removed. + # Relevant issue: https://github.com/haskell/ghcup-hs/issues/952 Remove-Item -Path "$archivePath" -ErrorAction Continue Print-Msg -msg 'Processing MSYS2 bash for first time use...'