Skip to content

Commit

Permalink
Add cabal update step in combined-haddock.sh (#6283)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored and effectfully committed Aug 6, 2024
1 parent 1c92430 commit 2fe5ebb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/combined-haddock.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"

Expand Down

0 comments on commit 2fe5ebb

Please sign in to comment.