From f2e7ecd1689a6545c20ab6c68748bd1859cee20c Mon Sep 17 00:00:00 2001 From: Julian Ospald Date: Wed, 3 Oct 2018 11:31:18 +0800 Subject: [PATCH] Fix travis --- .travis.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.travis.sh b/.travis.sh index 1f6f206..e3d37aa 100755 --- a/.travis.sh +++ b/.travis.sh @@ -27,8 +27,14 @@ export PATH="$HOME/.cabal/bin:$HOME/.ghcup/bin:$PATH" # install cabal-install ./ghcup -v install-cabal -cabal update -cabal install cabal-install +cabal new-update + +# https://github.com/haskell/cabal/issues/5516 +mkdir -p ~/.cabal/store/ghc-8.2.2/package.db + +# this shouldn't be necessary, file bug upstream +cabal new-install --symlink-bindir="$HOME"/.ghcup/bin cabal-install +mv -f "$HOME"/.ghcup/bin/cabal "$HOME"/.cabal/bin/cabal # install shellcheck cabal new-update