Skip to content

Commit 6ec0f00

Browse files
author
Gaël Deest
committed
Filter out base-compat-batteries from .ghc.environment before doctests
1 parent 0b9b2a1 commit 6ec0f00

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,10 @@ jobs:
6464
run: |
6565
# Necessary for doctest to be found in $PATH
6666
export PATH="$HOME/.cabal/bin:$PATH"
67-
echo $PATH
68-
(cd servant && doctest src)
67+
# Filter out base-compat-batteries from .ghc.environment.*
68+
# TODO: This is an ugly hack.
69+
perl -i -e 'while (<ARGV>) { print unless /package-id\s+(base-compat-batteries)-\d+(\.\d+)*/; }' .ghc.environment.*
70+
(cd servant && rm .ghc.environment.* && doctest src)
6971
7072
stack:
7173
name: stack / ghc ${{ matrix.ghc }}

0 commit comments

Comments
 (0)