Skip to content

Commit

Permalink
Nasty workaround for travis-bootstrap.sh error.
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Z. Yang <[email protected]>
  • Loading branch information
ezyang committed Jul 24, 2016
1 parent e3c64e6 commit da227c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions travis-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,22 @@ install_from_tarball() {

timed cabal update

# NB: The cabal cleans here hack around an sdist bug where
# the bootstrapped Cabal/cabal-install may be built
# without a Paths_* module available. Under some situations
# which I have not been able to reproduce except on Travis,
# cabal sdist will incorrectly pick up the left over dist
# directory from the bootstrap and then try to package
# up the Paths module, but to no avail because it is not
# available. I ran out of patience trying to debug this
# issue, and it is easy enough to work around: clean first.

echo Cabal
(cd Cabal && timed cabal clean)
(cd Cabal && timed cabal sdist)
(cd Cabal && timed install_from_tarball)

echo cabal-install
(cd cabal-install && timed cabal clean)
(cd cabal-install && timed cabal sdist)
(cd cabal-install && timed install_from_tarball)

0 comments on commit da227c5

Please sign in to comment.