Skip to content

Commit 5db0108

Browse files
authored
Workaround for GHC 8.10.5 on macOS (#1931)
* Workaround for GHC 8.10.5 on macOS * Removes unnecessary env specification * Also adds workaround to test CI
1 parent e02c293 commit 5db0108

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
ghc: '8.8.3' # fails due to segfault
2828
- os: windows-latest
2929
ghc: '8.8.2' # fails due to error with Cabal
30-
- os: macOS-latest
31-
ghc: '8.10.5' # https://gitlab.haskell.org/ghc/ghc/-/issues/19968
3230
include:
3331
- os: windows-latest
3432
ghc: '8.10.2.2' # only available for windows and choco
@@ -74,6 +72,12 @@ jobs:
7472
run: |
7573
echo "GHC_VERSION=$GHC_VER" >> $GITHUB_ENV
7674
75+
- name: Tentative Workaround for GHC 8.10.5 on macOS
76+
if: matrix.os == 'macOS-latest' && matrix.ghc == '8.10.5'
77+
run: |
78+
echo "# uninstalling CommandLineTools (see https://github.com/haskell/haskell-language-server/issues/1913#issuecomment-861667786)"
79+
sudo rm -rf /Library/Developer/CommandLineTools
80+
7781
- name: Build Server
7882
# Try building it twice in case of flakey builds on Windows
7983
run: |

.github/workflows/test.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ jobs:
6565
# This build get stuck frequently
6666
# - os: windows-latest
6767
# ghc: '8.6.4'
68-
exclude:
69-
# Not able to build 'network' package
70-
# See https://gitlab.haskell.org/ghc/ghc/-/issues/19968
71-
- os: macOS-latest
72-
ghc: '8.10.5'
7368

7469
steps:
7570
- if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
@@ -98,6 +93,12 @@ jobs:
9893
echo "CABAL_STORE_DIR=~/.cabal/store" >> $GITHUB_ENV
9994
echo "CABAL_PKGS_DIR=~/.cabal/packages" >> $GITHUB_ENV
10095
96+
- name: Tentative Workaround for GHC 8.10.5 on macOS
97+
if: matrix.os == 'macOS-latest' && matrix.ghc == '8.10.5'
98+
run: |
99+
echo "# uninstalling CommandLineTools (see https://github.com/haskell/haskell-language-server/issues/1913#issuecomment-861667786)"
100+
sudo rm -rf /Library/Developer/CommandLineTools
101+
101102
# Needs to be before Cache Cabal so the cache can detect changes to the modified cabal.project file
102103
- if: ${{ needs.pre_job.outputs.should_skip != 'true' && matrix.ghc == '9.0.1' }}
103104
name: Use modified cabal.project for ghc9

0 commit comments

Comments
 (0)