Fix predictable /tmp dirs so ghcup gc -t
fires
This commit is contained in:
parent
3ff670134c
commit
e511fc3c0a
@ -377,11 +377,12 @@ run RunOptions{..} runAppState leanAppstate runLogger = runE @RunEffects ( do
|
|||||||
predictableTmpDir Toolchain{..} = do
|
predictableTmpDir Toolchain{..} = do
|
||||||
tmp <- getTemporaryDirectory
|
tmp <- getTemporaryDirectory
|
||||||
pure $ tmp
|
pure $ tmp
|
||||||
</> ("ghcup"
|
</> ("ghcup-" <> intercalate "_"
|
||||||
<> maybe "" (("_ghc-" <>) . T.unpack . tVerToText) ghcVer
|
( maybe [] ( (:[]) . ("ghc-" <>) . T.unpack . tVerToText) ghcVer
|
||||||
<> maybe "" (("_cabal-" <>) . T.unpack . tVerToText) cabalVer
|
<> maybe [] ( (:[]) . ("cabal-" <>) . T.unpack . tVerToText) cabalVer
|
||||||
<> maybe "" (("_hls-" <>) . T.unpack . tVerToText) hlsVer
|
<> maybe [] ( (:[]) . ("hls-" <>) . T.unpack . tVerToText) hlsVer
|
||||||
<> maybe "" (("_stack-" <>) . T.unpack . tVerToText) stackVer
|
<> maybe [] ( (:[]) . ("stack-" <>) . T.unpack . tVerToText) stackVer
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user