Skip to content

Commit

Permalink
Use project-file when doing "cabal update"
Browse files Browse the repository at this point in the history
GHC head version uses the head.hackage repository which is different
from hackage so update could result in different packages.
  • Loading branch information
harendra-kumar committed Jan 26, 2022
1 parent a6d01f1 commit 075e13a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packcheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,12 @@ ensure_cabal_config() {
then
echo
echo "cabal v2-update"
retry_cmd cabal v2-update
if test -n "$CABAL_PROJECT"
then
retry_cmd cabal v2-update --project-file "$CABAL_PROJECT"
else
retry_cmd cabal v2-update
fi
fi
fi
}
Expand Down

0 comments on commit 075e13a

Please sign in to comment.