Skip to content

Commit

Permalink
Use an earlier version of stack for lts-6.
Browse files Browse the repository at this point in the history
This is to deal with bug commercialhaskell/stack#5253,
stack 2.1.3 doesn't correctly build happy for early LTS's.
  • Loading branch information
phlummox committed Jun 24, 2020
1 parent 8841129 commit 11f581e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ before_install:
travis_retry curl --insecure -L https://get.haskellstack.org/stable/osx-x86_64.tar.gz | tar xz --strip-components=1 --include '*/stack' -C ~/.local/bin
else
# recent versions of stack fail to work with lts <= 7
if [[ $ARGS == *"lts-7"* ]]; then
# but we don't expect to build with lts <= 5, so just 2 checks
# to do.
if [[ $ARGS == *"lts-7"* || $ARGS == *"lts-6"* ]]; then
url=https://github.com/commercialhaskell/stack/releases/download/v1.9.3/stack-1.9.3-linux-x86_64.tar.gz
else
url=https://get.haskellstack.org/stable/linux-x86_64.tar.gz
Expand Down

0 comments on commit 11f581e

Please sign in to comment.