Surprising warning about free space on /tmp
I just downloaded the ghcup 0.1.17.4 binary and used it to install cabal. I got a warning message about free space on /tmp
that was surprising because I'm only installing cabal. This shouldn't require 5000 MB. Perhaps that warning is only for when installing GHC?
[ Warn ] Possibly insufficient disk space on /tmp. At least 5000 MB are recommended, but only 1983.12 are free. Consider freeing up disk space or setting TMPDIR env variable.
Full output
% ./x86_64-linux-ghcup-0.1.17.4 install cabal
[ Info ] downloading: https://raw.githubusercontent.com/haskell/ghcup-metadata/master/ghcup-0.0.6.yaml as file /home/tom/.ghcup/cache/ghcup-0.0.6.yaml
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 144k 100 144k 0 0 1169k 0 --:--:-- --:--:-- --:--:-- 1169k
[ Warn ] Failed to parse cabal symlink target with: /home/tom/.ghcup/bin/cabal: getSymbolicLinkTarget:readSymbolicLink: invalid argument (Invalid argument). The symlink /home/tom/.ghcup/bin/cabal needs to point to valid cabal binary, such as 'cabal-3.4.0.0'.
[ Warn ] New ghc version available. To upgrade, run 'ghcup install ghc 9.2.1'
[ Warn ] Possibly insufficient disk space on /tmp. At least 5000 MB are recommended, but only 1983.12 are free. Consider freeing up disk space or setting TMPDIR env variable.
[ Warn ] ...waiting for 10 seconds before continuing anyway, you can still abort...
[ Info ] downloading: https://downloads.haskell.org/~ghcup/unofficial-bindists/cabal/3.6.2.0/cabal-install-3.6.2.0-x86_64-linux-alpine-static.tar.xz as file /tmp/ghcup-b799d01f23f9f0d0/cabal-install-3.6.2.0-x86_64-linux-alpine-static.tar.xz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 4523k 100 4523k 0 0 76.1M 0 --:--:-- --:--:-- --:--:-- 76.1M
[ Info ] verifying digest of: cabal-install-3.6.2.0-x86_64-linux-alpine-static.tar.xz
[ Warn ] Possibly insufficient disk space on /tmp. At least 5000 MB are recommended, but only 1978.7 are free. Consider freeing up disk space or setting TMPDIR env variable.
[ Warn ] ...waiting for 10 seconds before continuing anyway, you can still abort...
[ Info ] Unpacking: cabal-install-3.6.2.0-x86_64-linux-alpine-static.tar.xz to /tmp/ghcup-fc9434d631f3f2b2
[ Info ] Installing cabal
[ Info ] Cabal installation successful