Skip to content

Commit

Permalink
Attempt to fix certificate problems on windows (#954)
Browse files Browse the repository at this point in the history
* Fix certificate problems on windows
  • Loading branch information
Mihai Budiu authored Apr 8, 2021
1 parent 0c1e36f commit 183229e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/install-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ fetch_stack_windows() {

# We need stack to generate cabal files with precise bounds, even for cabal
# builds.
pwd
mkdir -p ~/.local/bin
if [ "$(uname)" = "Darwin" ]; then
retry fetch_stack_osx
elif [ "$(uname)" = "Linux" ]; then
retry fetch_stack_linux
else
retry fetch_stack_windows
# On Travis windows stack setup below fails with an error about
# certificates missing. So we install ghc manually.
if [ "x${TRAVIS}" = "xtrue" ]; then
choco install haskell-dev
fi
fi

retry stack --no-terminal setup

0 comments on commit 183229e

Please sign in to comment.