From 2fe5ebb2963650d8b289003f1b3d83afe4a52c66 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}"