Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cabal update step in combined-haddock.sh #6283

Merged
merged 1 commit into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading