From 7cfad57f7023d8b5921d8b51c1e95eab4a1a9cfe Mon Sep 17 00:00:00 2001 From: Mikhail Glushenkov <mikhail.glushenkov@gmail.com> Date: Tue, 14 May 2019 11:18:18 +0100 Subject: [PATCH] Fix the meta check. --- travis-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/travis-install.sh b/travis-install.sh index ab66fffca7..ade6e57e91 100755 --- a/travis-install.sh +++ b/travis-install.sh @@ -18,9 +18,9 @@ if [ -z ${STACK_CONFIG+x} ]; then if [ "$SCRIPT" = "meta" ]; then # change to /tmp so cabal.project doesn't affect new-install - cabal update - (cd /tmp && cabal new-install alex --constraint='alex ^>= 3.2.4') - (cd /tmp && cabal new-install happy --constraint='happy ^>= 1.19.9') + cabal v2-update + (cd /tmp && cabal v2-install alex --constraint='alex ^>= 3.2.4' --overwrite=always) + (cd /tmp && cabal v2-install happy --constraint='happy ^>= 1.19.9' --overwrite=always) fi elif [ "$TRAVIS_OS_NAME" = "osx" ]; then -- GitLab