Skip to content

Commit

Permalink
Add cabal update step in combined-haddock.sh (IntersectMBO#6283)
Browse files Browse the repository at this point in the history
  • Loading branch information
zeme-wana authored and v0d1ch committed Dec 6, 2024
1 parent e1b5750 commit 6312e7d
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 6312e7d

Please sign in to comment.