From 571a62ad3e66f587b6a6b7b881f86c95f023f81e Mon Sep 17 00:00:00 2001 From: Robin Palotai Date: Fri, 25 Aug 2017 21:23:09 +0200 Subject: [PATCH] Work around issue with old (<2.0) cabal versions and the hackage index. Actually the issue is worked around on hackage-side, but it seems not in the fpcomplete mirror. See https://github.com/haskell/cabal/issues/4624#issuecomment-318743713. --- .travis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 9b2dcc0..1fbc89c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -109,9 +109,12 @@ before_install: unzip -j protoc-*-linux-x86_64.zip bin/protoc -d ~/.local/bin fi + # Temporary use normal hackage, as it might have cabal workarounds, see + # https://github.com/haskell/cabal/issues/4624#issuecomment-318743713. # Use the more reliable S3 mirror of Hackage mkdir -p $HOME/.cabal - echo 'remote-repo: hackage.haskell.org:http://hackage.fpcomplete.com/' > $HOME/.cabal/config + # echo 'remote-repo: hackage.haskell.org:http://hackage.fpcomplete.com/' > $HOME/.cabal/config + echo 'remote-repo: hackage.haskell.org:http://hackage.haskell.org/' > $HOME/.cabal/config echo 'remote-repo-cache: $HOME/.cabal/packages' >> $HOME/.cabal/config if [ "$CABALVER" != "1.16" ]