From e7e5c5cfbfd42c41b1e62d42bb18483a83b78701 Mon Sep 17 00:00:00 2001
From: Ben Gamari <ben@smart-cactus.org>
Date: Sat, 13 Jun 2020 14:53:41 -0400
Subject: [PATCH] ci: Set --store-dir explicitly

To ensure we aren't affected by the environment
---
 ci/TestPatches.hs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ci/TestPatches.hs b/ci/TestPatches.hs
index 03b36cbc..70e26344 100644
--- a/ci/TestPatches.hs
+++ b/ci/TestPatches.hs
@@ -254,9 +254,10 @@ buildPackage cfg pname version = do
     (makeTestCabalFile cfg pname version)
 
   -- run the build
+  absDirName <- makeAbsolute "./store"
   code <- runProcess $ setWorkingDir dirName
                      $ proc "cabal"
-                     $ ["v2-build"] ++ cabalOptions cfg
+                     $ ["--store-dir="++absDirName, "v2-build"] ++ cabalOptions cfg
 
   -- figure out what happened
   let planPath = dirName </> "dist-newstyle" </> "cache" </> "plan.json"
-- 
GitLab