From e15a95f1f20494ec5ce2a9ca6bc6c3ee181be0f3 Mon Sep 17 00:00:00 2001 From: Adithya Kumar Date: Mon, 10 Jun 2024 22:36:17 +0530 Subject: [PATCH] Use --with-compiler options while running cabal v2-update --- packcheck.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packcheck.sh b/packcheck.sh index 40cbfec..e25bf1c 100755 --- a/packcheck.sh +++ b/packcheck.sh @@ -1374,9 +1374,11 @@ ensure_cabal_config() { echo "cabal v2-update" if test -n "$CABAL_PROJECT" then - retry_cmd $CABAL_BINARY_NAME v2-update --project-file "$CABAL_PROJECT" + retry_cmd $CABAL_BINARY_NAME v2-update --project-file "$CABAL_PROJECT" \ + --with-compiler "$COMPILER_EXE_PATH" else - retry_cmd $CABAL_BINARY_NAME v2-update + retry_cmd $CABAL_BINARY_NAME v2-update \ + --with-compiler "$COMPILER_EXE_PATH" fi fi fi