[commit: ghc] master: CircleCI: Freeze all packages at fixed index state (3c0ffd1)

git at git.haskell.org git at git.haskell.org
Wed Nov 29 16:31:26 UTC 2017


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/3c0ffd11f0e949aca17fa32a925c2cfe33c0f109/ghc

>---------------------------------------------------------------

commit 3c0ffd11f0e949aca17fa32a925c2cfe33c0f109
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Nov 29 10:22:50 2017 -0500

    CircleCI: Freeze all packages at fixed index state
    
    We will periodically bump this as necessary.


>---------------------------------------------------------------

3c0ffd11f0e949aca17fa32a925c2cfe33c0f109
 .circleci/prepare-system.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/.circleci/prepare-system.sh b/.circleci/prepare-system.sh
index c067a78..4b0218e 100755
--- a/.circleci/prepare-system.sh
+++ b/.circleci/prepare-system.sh
@@ -9,6 +9,7 @@ fail() {
 
 echo 'BUILD_SPHINX_HTML = NO' > mk/validate.mk
 echo 'BUILD_SPHINX_PDF = NO' >> mk/validate.mk
+hackage_index_state="@1511758800"
 
 cat > mk/build.mk <<EOF
 V=1
@@ -30,7 +31,7 @@ case "$(uname)" in
                             ncurses-dev git make automake autoconf gcc perl \
                             python3 texinfo xz-utils lbzip2 patch
         cabal update
-        cabal install --reinstall hscolour==1.24.2
+        cabal install --reinstall hscolour --index-state=$hackage_index_state
         ln -s $HOME/.cabal/bin/HsColour /usr/local/bin/HsColour
 
         echo 'HADDOCK_DOCS = NO' >> mk/build.mk
@@ -44,7 +45,7 @@ case "$(uname)" in
       # assuming Ubuntu
       apt-get install -qy git make automake autoconf gcc perl python3 texinfo xz-utils lbzip2 patch
       cabal update
-      cabal install --reinstall hscolour
+      cabal install --reinstall hscolour --index-state=$hackage_index_state
     fi
     ;;
   Darwin)
@@ -53,7 +54,7 @@ case "$(uname)" in
     fi
     brew install ghc cabal-install python3 ncurses
     cabal update
-    cabal install --reinstall alex happy haddock hscolour
+    cabal install --reinstall alex happy haddock hscolour --index-state=$hackage_index_state
     # put them on the $PATH, don't fail if already installed
     ln -s $HOME/.cabal/bin/alex /usr/local/bin/alex || true
     ln -s $HOME/.cabal/bin/happy /usr/local/bin/happy || true



More information about the ghc-commits mailing list