Skip to content

Commit 7dc4550

Browse files
committed
.travis.yml: Don't test sdist install on cabal 3.[0-3]
Since it doesn't work. It should be fixed in 3.4, see: haskell/cabal#6393
1 parent c7ad369 commit 7dc4550

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,13 @@ script:
4545
SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}')
4646
cd dist-newstyle/sdist || cd dist
4747
if [[ -f "$SRC_TGZ" ]]; then
48-
cabal install --force-reinstalls "$SRC_TGZ"
48+
if cabal --version | grep -q 'version 3.[0-3]'; then
49+
# https://github.com/haskell/cabal/issues/6393
50+
echo >&2 "cabal v2-install broke tarball installs, fixed in 3.4"
51+
echo >&2 "Will not test sdist installability"
52+
else
53+
cabal install --force-reinstalls "$SRC_TGZ"
54+
fi
4955
else
5056
echo >&2 "$SRC_TGZ not found"
5157
exit 1

0 commit comments

Comments
 (0)