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

Ben Gamari gitlab at gitlab.haskell.org
Mon Nov 30 01:21:40 UTC 2020



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


Commits:
37584e09 by Ben Gamari at 2020-11-29T20:21:24-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)"
@@ -174,6 +175,9 @@ function set_toolchain_paths() {
     *) ;;
   esac
 
+  # HACK: GHC-9.0 requires happy 1.19
+  HAPPY="$toolchain/bin/happy$exe"
+
   if [[ "$needs_toolchain" = 1 ]]; then
       # These are populated by setup_toolchain
       GHC="$toolchain/bin/ghc$exe"
@@ -317,10 +321,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/37584e09238da2fbff166f965f964576e76eee3b

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/37584e09238da2fbff166f965f964576e76eee3b
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/157029b8/attachment-0001.html>


More information about the ghc-commits mailing list