[Git][ghc/ghc][wip/backports-9.0] gitlab-ci: Fix maximum happy version

Ben Gamari gitlab at gitlab.haskell.org
Mon Nov 30 01:14:58 UTC 2020



Ben Gamari pushed to branch wip/backports-9.0 at Glasgow Haskell Compiler / GHC


Commits:
fb35657b by Ben Gamari at 2020-11-29T20:14:52-05:00
gitlab-ci: Fix maximum happy version

- - - - -


1 changed file:

- .gitlab/ci.sh


Changes:

=====================================
.gitlab/ci.sh
=====================================
@@ -9,7 +9,8 @@ set -e -o pipefail
 
 # Configuration:
 hackage_index_state="2020-09-14T19:30:43Z"
-MIN_HAPPY_VERSION="1.20"
+MIN_HAPPY_VERSION="1.19.10"
+MAX_HAPPY_VERSION="1.20"
 MIN_ALEX_VERSION="3.2"
 
 TOP="$(pwd)"
@@ -317,10 +318,10 @@ function setup_toolchain() {
   cabal update
 
   info "Building happy..."
-  $cabal_install happy --constraint="happy>=$MIN_HAPPY_VERSION"
+  run $cabal_install happy --constraint="happy>=$MIN_HAPPY_VERSION && <$MAX_HAPPY_VERSION"
 
   info "Building alex..."
-  $cabal_install alex --constraint="alex>=$MIN_ALEX_VERSION"
+  run $cabal_install alex --constraint="alex>=$MIN_ALEX_VERSION"
 }
 
 function cleanup_submodules() {



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fb35657b6a6d204e1d8cdc82aec624153f12323d

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/fb35657b6a6d204e1d8cdc82aec624153f12323d
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20201129/9b6ad2ea/attachment.html>


More information about the ghc-commits mailing list