[Hackage] #486: cabal-install's bootstrap.sh has no recovery strategy in case of errors

#486: cabal-install's bootstrap.sh has no recovery strategy in case of errors ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Keywords: Difficulty: unknown | Ghcversion: Platform: | ----------------------------+----------------------------------------------- When attempting to install cabal-install for the first time, on a unix system, using the supplied bootstrap.sh script, if anything goes wrong during the script, it carries on regardless, leaving the install process in an inconsistent and potentially unrecoverable state. I tried to install cabal-install for ghc-6.8.2, which was originally supplied with an older version of Cabal (1.2.3.0), on a Mac. For some reason (probably another Cabal bug), my existing $HOME/.cabal /powerpc-darwin-6.8.2 directory had the wrong permissions. So when bootstrap.sh built Cabal-1.6.0.1 and tried to install it, it could not. I fixed the permissions and ran bootstrap.sh again: It built and registered Cabal-1.6.0.1 correctly this time, but did nothing else, except print the error "Sorry, something went wrong". Running the subsequent script commands manually (to configure, build and install HTTP, zlib, and cabal- install) also did nothing. For instance: {{{ $ runghc Setup configure --user && runghc Setup build && runghc Setup install $ }}} Note the lack of any output whatsoever. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/486 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#486: cabal-install's bootstrap.sh has no recovery strategy in case of errors ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.6.0.1 Severity: normal | Resolution: fixed Keywords: | Difficulty: unknown Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * status: new => closed * resolution: => fixed Comment: Thanks for the report. The current version does extensive error checking: http://darcs.haskell.org/cabal-install/bootstrap.sh It will be included in the upcoming release. Note, to workaround the situation where a half-bootstrapped version does nothing, blow the build tree away and unpack the cabal-install tarball again. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/486#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage