Skip to content

Commit

Permalink
Suggest DISABLE_DIST_CHECKS when it fails
Browse files Browse the repository at this point in the history
  • Loading branch information
harendra-kumar committed Jun 14, 2021
1 parent 4b66896 commit 1cd2016
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1456,18 +1456,18 @@ build_and_test() {

dist_checks() {
case "$BUILD" in
stack) run_verbose_errexit $SDIST_STACKCMD sdist $SDIST_OPTIONS ;;
stack) run_verbose $SDIST_STACKCMD sdist $SDIST_OPTIONS ;;
cabal-v2)
run_verbose_errexit $SDIST_CABALCMD v2-sdist $CABAL_BUILD_TARGETS $SDIST_OPTIONS

echo
if test -n "$CABAL_CHECK_RELAX"
then
run_verbose cabal check || true
else
run_verbose cabal check || \
die "Use CABAL_CHECK_RELAX=y to ignore this error"
fi ;;
fi
run_verbose $SDIST_CABALCMD v2-sdist $CABAL_BUILD_TARGETS $SDIST_OPTIONS
;;
esac
}

Expand Down Expand Up @@ -1678,7 +1678,7 @@ build_compile () {
if test -z "$DISABLE_DIST_CHECKS"
then
show_step "Package distribution checks"
dist_checks
dist_checks || die "Use DISABLE_DIST_CHECKS=y to disable this check"
fi

if test "$ENABLE_INSTALL" = y
Expand Down

0 comments on commit 1cd2016

Please sign in to comment.