Skip to content

Commit

Permalink
Work around broken CI due to commercialhaskell/stack#3213
Browse files Browse the repository at this point in the history
  • Loading branch information
Rufflewind committed Sep 15, 2017
1 parent 010c986 commit bbc6953
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tools/testscript
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ prepare() {

stack="$STACK --no-terminal"
mkdir -p _stack

# workaround for commercialhaskell/stack#3213:
# use official GHC tarball instead of stack's patched tarball
if [ "$LOCALAPPDATA" ] && printf "%s\n" "$STACK" | grep '\<lts-2\>'; then
dir=`cygpath -u "$LOCALAPPDATA"`/Programs/stack/x86_64-windows
mkdir -p "$dir"
curl -L "https://downloads.haskell.org/~ghc/7.8.4/ghc-7.8.4-x86_64-unknown-mingw32.tar.xz" | tar -C "$dir" -xJ
echo installed >"$dir/ghc-7.8.4.installed"
fi

(
cd _stack
case `uname` in
Expand Down

0 comments on commit bbc6953

Please sign in to comment.