Revert "implements isolated install sanity-checking for Cabal installs"

This reverts commit 300cfd3ba6.
This commit is contained in:
Arjun Kathuria 2021-08-11 09:46:42 +05:30
parent 300cfd3ba6
commit dcfb3afdad
3 changed files with 1 additions and 6 deletions

View File

@ -442,7 +442,6 @@ install' _ (_, ListResult {..}) = do
, DownloadFailed
, NoUpdate
, TarDirDoesNotExist
, IsolatedDirNotEmpty
]
run (do

View File

@ -1478,7 +1478,6 @@ Report bugs at <https://gitlab.haskell.org/haskell/ghcup-hs/issues>|]
, TarDirDoesNotExist
, NextVerNotFound
, NoToolVersionSet
, IsolatedDirNotEmpty
]
let runInstTool mInstPlatform action' = do

View File

@ -405,7 +405,6 @@ installCabalBindist :: ( MonadMask m
#if !defined(TAR)
, ArchiveResult
#endif
, IsolatedDirNotEmpty
]
m
()
@ -426,8 +425,7 @@ installCabalBindist dlinfo ver isoFilepath = do
)
(throwE $ AlreadyInstalled Cabal ver)
Just isoDir ->
liftE $ isolatedInstallSanityCheck isoDir
_ -> pure () -- check isn't required in isolated installs
-- download (or use cached version)
dl <- liftE $ downloadCached dlinfo Nothing
@ -500,7 +498,6 @@ installCabalBin :: ( MonadMask m
#if !defined(TAR)
, ArchiveResult
#endif
, IsolatedDirNotEmpty
]
m
()