From 075e13ab716c67d2110db4905ae42b0280af046d Mon Sep 17 00:00:00 2001 From: Harendra Kumar Date: Wed, 26 Jan 2022 15:20:08 +0530 Subject: [PATCH] Use project-file when doing "cabal update" GHC head version uses the head.hackage repository which is different from hackage so update could result in different packages. --- packcheck.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packcheck.sh b/packcheck.sh index 080bc72..9db6b38 100755 --- a/packcheck.sh +++ b/packcheck.sh @@ -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 }