Reset GHC_PACKAGE_PATH varialbe (3rd try).
authorAndrey Mokhov <andrey.mokhov@gmail.com>
Sat, 9 Jan 2016 18:07:22 +0000 (18:07 +0000)
committerAndrey Mokhov <andrey.mokhov@gmail.com>
Sat, 9 Jan 2016 18:07:22 +0000 (18:07 +0000)
See #110. [skip ci]

.appveyor.yml
build.bat

index e382140..16de309 100644 (file)
@@ -23,8 +23,5 @@ install:
     - happy --version
 
 build_script:
-    - set GHC_PACKAGE_PATH
-    - set GHC_PACKAGE_PATH=
-    - set GHC_PACKAGE_PATH
     - cd C:\msys64\home\ghc\shake-build
     - echo "" | stack --no-terminal exec -- build.bat -j --no-progress
index a4e2548..4cbbc42 100644 (file)
--- a/build.bat
+++ b/build.bat
@@ -16,4 +16,7 @@
                ".."        ^\r
                %*\r
 \r
+@rem Unset GHC_PACKAGE_PATH variable, as otherwise ghc-cabal complains\r
+@if defined GHC_PACKAGE_PATH ( set GHC_PACKAGE_PATH )\r
+\r
 @ghc %ghcArgs% && .shake\build %shakeArgs%\r