Skip to content

Commit 20cd10f

Browse files
committed
Don't use experimental cabal-doctest
- Pin doctest-0.24.3
1 parent 67f85b0 commit 20cd10f

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
CABALBUILD := cabal build
66
CABALRUN := cabal run
77

8-
DOCTEST := cabal doctest
8+
DOCTEST := cabal repl --with-compiler=doctest --build-depends=QuickCheck --verbose=0 --repl-options='-w -Wdefault -Wno-inconsistent-flags'
99

1010
# default rules
1111

@@ -157,9 +157,12 @@ doctest: ## Run doctests.
157157
cd cabal-install-solver && $(DOCTEST)
158158
cd cabal-install && $(DOCTEST)
159159

160+
# We don't use the cabal-doctest external command but we install it anyway along
161+
# with doctest.
162+
# SEE: https://github.com/haskell/cabal/issues/11493
160163
.PHONY: doctest-install
161164
doctest-install: ## Install doctest tool needed for running doctests.
162-
cabal install doctest --overwrite-policy=always --ignore-project --flag cabal-doctest
165+
cabal install doctest-0.24.3 --overwrite-policy=always --ignore-project --flag cabal-doctest
163166

164167
# tests
165168

0 commit comments

Comments
 (0)