Skip to content

Commit

Permalink
Work around issue with old (<2.0) cabal versions and the hackage index.
Browse files Browse the repository at this point in the history
Actually the issue is worked around on hackage-side, but it seems not in
the fpcomplete mirror.
See haskell/cabal#4624 (comment).
  • Loading branch information
robinp committed Aug 25, 2017
1 parent c2e3f88 commit 571a62a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]
Expand Down

0 comments on commit 571a62a

Please sign in to comment.