Unverified Commit d7713646 authored by Thomas Tuegel's avatar Thomas Tuegel
Browse files

Initialize globalCacheDir in baseSavedConfig

globalCacheDir (remote-repo-cache) is now initialized by default because only
cabal-install can determine the correct default location relative to
defaultCabalDir. The globalLogsDir (build-logs) and globalWorldFile (world-file)
already had the same behavior.

Resolves: #4845.
parent dda87d12
......@@ -421,6 +421,7 @@ instance Semigroup SavedConfig where
baseSavedConfig :: IO SavedConfig
baseSavedConfig = do
userPrefix <- defaultCabalDir
cacheDir <- defaultCacheDir
logsDir <- defaultLogsDir
worldFile <- defaultWorldFile
return mempty {
......@@ -433,6 +434,7 @@ baseSavedConfig = do
prefix = toFlag (toPathTemplate userPrefix)
},
savedGlobalFlags = mempty {
globalCacheDir = toFlag cacheDir,
globalLogsDir = toFlag logsDir,
globalWorldFile = toFlag worldFile
}
......
Supports Markdown
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