Unverified Commit 2d97ee4e authored by Mikhail Glushenkov's avatar Mikhail Glushenkov Committed by GitHub

Merge pull request #4846 from ttuegel/default-remote-repo-cache

Initialize globalCacheDir in baseSavedConfig
parents 26426fcc d7713646
......@@ -428,6 +428,7 @@ instance Semigroup SavedConfig where
baseSavedConfig :: IO SavedConfig
baseSavedConfig = do
userPrefix <- defaultCabalDir
cacheDir <- defaultCacheDir
logsDir <- defaultLogsDir
worldFile <- defaultWorldFile
return mempty {
......@@ -440,6 +441,7 @@ baseSavedConfig = do
prefix = toFlag (toPathTemplate userPrefix)
},
savedGlobalFlags = mempty {
globalCacheDir = toFlag cacheDir,
globalLogsDir = toFlag logsDir,
globalWorldFile = toFlag worldFile
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment