[Git][ghc/ghc][wip/darwin-ci] gitlab-ci: Pass -w to cabal update

Ben Gamari (@bgamari) gitlab at gitlab.haskell.org
Thu Jan 12 03:55:33 UTC 2023



Ben Gamari pushed to branch wip/darwin-ci at Glasgow Haskell Compiler / GHC


Commits:
20f0c97d by Ben Gamari at 2023-01-12T03:55:31+00:00
gitlab-ci: Pass -w to cabal update

Due to cabal#8447, cabal-install 3.8.1.0 requires a compiler to run
`cabal update`.
- - - - -


1 changed file:

- .gitlab/ci.sh


Changes:

=====================================
.gitlab/ci.sh
=====================================
@@ -240,7 +240,9 @@ function set_toolchain_paths() {
 }
 
 function cabal_update() {
-  run "$CABAL" update --index="$HACKAGE_INDEX_STATE"
+  # In principle -w shouldn't be necessary here but with
+  # cabal-install 3.8.1.0 it is, due to cabal#8447.
+  run "$CABAL" update -w "$GHC" --index="$HACKAGE_INDEX_STATE"
 }
 
 



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/20f0c97d4a6c45077b55e504ebf48b32a5d32a50

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/20f0c97d4a6c45077b55e504ebf48b32a5d32a50
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20230111/d9834261/attachment.html>


More information about the ghc-commits mailing list