Skip to content

Commit 0042fda

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 a65adc5 commit 0042fda

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
@@ -40,7 +40,13 @@ script:
4040
SRC_TGZ=$(cabal info . | awk '{print $2 ".tar.gz";exit}')
4141
cd dist-newstyle/sdist || cd dist
4242
if [[ -f "$SRC_TGZ" ]]; then
43-
cabal install --force-reinstalls "$SRC_TGZ"
43+
if cabal --version | grep -q 'version 3.[0-3]'; then
44+
# https://github.com/haskell/cabal/issues/6393
45+
echo >&2 "cabal v2-install broke tarball installs, fixed in 3.4"
46+
echo >&2 "Will not test sdist installability"
47+
else
48+
cabal install --force-reinstalls "$SRC_TGZ"
49+
fi
4450
else
4551
echo >&2 "$SRC_TGZ not found"
4652
exit 1

0 commit comments

Comments
 (0)