Revert "implements isolated install sanity-checking for Cabal installs"
This reverts commit 300cfd3ba6
.
This commit is contained in:
parent
300cfd3ba6
commit
dcfb3afdad
@ -442,7 +442,6 @@ install' _ (_, ListResult {..}) = do
|
||||
, DownloadFailed
|
||||
, NoUpdate
|
||||
, TarDirDoesNotExist
|
||||
, IsolatedDirNotEmpty
|
||||
]
|
||||
|
||||
run (do
|
||||
|
@ -1478,7 +1478,6 @@ Report bugs at <https://gitlab.haskell.org/haskell/ghcup-hs/issues>|]
|
||||
, TarDirDoesNotExist
|
||||
, NextVerNotFound
|
||||
, NoToolVersionSet
|
||||
, IsolatedDirNotEmpty
|
||||
]
|
||||
|
||||
let runInstTool mInstPlatform action' = do
|
||||
|
@ -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
|
||||
()
|
||||
|
Loading…
Reference in New Issue
Block a user