[commit: ghc] wip/misc-testsuite: gitlab: Don't use /tmp in win32-init (ee93940)

git at git.haskell.org git at git.haskell.org
Wed Jan 9 21:36:34 UTC 2019


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

On branch  : wip/misc-testsuite
Link       : http://ghc.haskell.org/trac/ghc/changeset/ee93940fb6f2fcf483428d590f4897daea2e522a/ghc

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

commit ee93940fb6f2fcf483428d590f4897daea2e522a
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Wed Jan 9 13:17:45 2019 -0500

    gitlab: Don't use /tmp in win32-init
    
    To avoid coupling between multiple builds.


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

ee93940fb6f2fcf483428d590f4897daea2e522a
 .gitlab/win32-init.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/.gitlab/win32-init.sh b/.gitlab/win32-init.sh
index dce9be8..ea05769 100644
--- a/.gitlab/win32-init.sh
+++ b/.gitlab/win32-init.sh
@@ -15,8 +15,9 @@ if [ ! -e $toolchain/bin/ghc ]; then
 fi
 
 if [ ! -e $toolchain/bin/cabal ]; then
-    curl https://www.haskell.org/cabal/release/cabal-install-2.2.0.0/cabal-install-2.2.0.0-i386-unknown-mingw32.zip > /tmp/cabal.zip
-    unzip /tmp/cabal.zip
+    curl https://www.haskell.org/cabal/release/cabal-install-2.2.0.0/cabal-install-2.2.0.0-i386-unknown-mingw32.zip > cabal.zip
+    unzip cabal.zip
+    rm cabal.zip
     mv cabal.exe $toolchain/bin
 fi
 



More information about the ghc-commits mailing list