From 6312e7dd6626abd8f5a3075cca7cf9a73ae40bb3 Mon Sep 17 00:00:00 2001 From: zeme-wana <15709674+zeme-wana@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:15:35 +0200 Subject: [PATCH] Add cabal update step in combined-haddock.sh (#6283) --- scripts/combined-haddock.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/combined-haddock.sh b/scripts/combined-haddock.sh index 37e910a93b4..f04c8a51ab7 100755 --- a/scripts/combined-haddock.sh +++ b/scripts/combined-haddock.sh @@ -49,11 +49,19 @@ HADDOCK_OPTS=( ) if (( "${#REGENERATE[@]}" > 0 )); then + cabal update cabal freeze cabal build "${CABAL_OPTS[@]}" "${REGENERATE[@]}" cabal haddock "${CABAL_OPTS[@]}" "${REGENERATE[@]}" "${HADDOCK_OPTS[@]}" fi + +if [[ "$?" != "0" ]]; then + echo "Failed to build haddock for plutus." + exit 1 +fi + + rm -rf "${OUTPUT_DIR}" mkdir -p "${OUTPUT_DIR}"