[Git][ghc/ghc][wip/backports] gitlab-ci: Ensure that cabal-install overwrites existing executables
Ben Gamari
gitlab at gitlab.haskell.org
Tue Sep 22 21:05:58 UTC 2020
Ben Gamari pushed to branch wip/backports at Glasgow Haskell Compiler / GHC
Commits:
d4d44edb by Ben Gamari at 2020-09-22T17:05:52-04:00
gitlab-ci: Ensure that cabal-install overwrites existing executables
Previously cabal-install wouldn't overwrite toolchain executables if
they already existed (as they likely would due to caching).
(cherry picked from commit 2f7ef2fb3234cdfb89b3da1298fc9c1b7381e418)
- - - - -
1 changed file:
- .gitlab/ci.sh
Changes:
=====================================
.gitlab/ci.sh
=====================================
@@ -282,7 +282,12 @@ function fetch_cabal() {
function setup_toolchain() {
fetch_ghc
fetch_cabal
- cabal_install="$CABAL v2-install --index-state=$hackage_index_state --installdir=$toolchain/bin"
+
+ cabal_install="$CABAL v2-install \
+ --index-state=$hackage_index_state \
+ --installdir=$toolchain/bin \
+ --overwrite-policy=always"
+
# Avoid symlinks on Windows
case "$(uname)" in
MSYS_*|MINGW*) cabal_install="$cabal_install --install-method=copy" ;;
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d4d44edbe4f9acbd523b3cc049f9a6ac3f7f0ddd
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/d4d44edbe4f9acbd523b3cc049f9a6ac3f7f0ddd
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/20200922/05438ee8/attachment.html>
More information about the ghc-commits
mailing list