From e5b8919eebf4da1abfd013d080a4d75e6db21e34 Mon Sep 17 00:00:00 2001 From: Shamil Mubarakshin <127750046+shamil-mubarakshin@users.noreply.github.com> Date: Sat, 11 Nov 2023 12:12:39 +0100 Subject: [PATCH] [macos11] Unlink brew ghc and cabal-install (#8778) --- images/macos/provision/core/haskell.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/images/macos/provision/core/haskell.sh b/images/macos/provision/core/haskell.sh index ce9ba682..859a8c14 100644 --- a/images/macos/provision/core/haskell.sh +++ b/images/macos/provision/core/haskell.sh @@ -1,5 +1,12 @@ #!/bin/bash -e -o pipefail +source ~/utils/utils.sh + +# https://github.com/actions/runner-images/issues/8738 +if is_BigSur; then + brew unlink ghc cabal-install +fi + curl --proto '=https' --tlsv1.2 -fsSL https://get-ghcup.haskell.org | sh export PATH="$HOME/.ghcup/bin:$PATH" echo 'export PATH="$PATH:$HOME/.ghcup/bin"' >> "$HOME/.bashrc"