Skip to content

Commit 1e9ee26

Browse files
committed
Raise minSpace to 5GB
1 parent 0b7d447 commit 1e9ee26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/GHCup/Utils/Dirs.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,10 @@ mkGhcupTmpDir = do
238238
tmpdir <- liftIO $ getEnvDefault "TMPDIR" "/tmp"
239239
let fp = T.unpack $ decUTF8Safe tmpdir
240240

241-
let minSpace = 2500 -- a rough guess, aight?
241+
let minSpace = 5000 -- a rough guess, aight?
242242
space <- handleIO (\_ -> pure Nothing) $ fmap Just $ liftIO $ getAvailSpace fp
243243
when (maybe False (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.|]
245245
$(logWarn)
246246
"...waiting for 10 seconds before continuing anyway, you can still abort..."
247247
liftIO $ threadDelay 10000000 -- give the user a sec to intervene

0 commit comments

Comments
 (0)