You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/GHCup/Utils/Dirs.hs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -238,10 +238,10 @@ mkGhcupTmpDir = do
238
238
tmpdir <- liftIO $ getEnvDefault "TMPDIR""/tmp"
239
239
let fp =T.unpack $ decUTF8Safe tmpdir
240
240
241
-
let minSpace =2500-- a rough guess, aight?
241
+
let minSpace =5000-- a rough guess, aight?
242
242
space <- handleIO (\_ ->pureNothing) $fmapJust$ liftIO $ getAvailSpace fp
243
243
when (maybeFalse (toBytes minSpace >) space) $do
244
-
$(logWarn) [i|Insufficient disk space on #{fp}. Need at least #{minSpace} MB, but only #{toMB (fromJust space)} are free. Consider freeing up disk space or setting TMPDIR env variable.|]
244
+
$(logWarn) [i|Possibly insufficient disk space on #{fp}. At least #{minSpace} MB are recommended, but only #{toMB (fromJust space)} are free. Consider freeing up disk space or setting TMPDIR env variable.|]
245
245
$(logWarn)
246
246
"...waiting for 10 seconds before continuing anyway, you can still abort..."
247
247
liftIO $ threadDelay 10000000-- give the user a sec to intervene
0 commit comments