Skip to content
Snippets Groups Projects
Commit 7b2e3630 authored by Mikhail Glushenkov's avatar Mikhail Glushenkov
Browse files

Use userInstallDirs as the sandbox location.

We set both globalInstallDirs and userInstallDirs to the same value, but using
'--global' makes cabal-install want to do unnecessary things like invoking
itself with 'sudo'.
parent 51bdff56
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ commonPackageEnvironmentConfig :: FilePath -> SavedConfig ...@@ -99,7 +99,7 @@ commonPackageEnvironmentConfig :: FilePath -> SavedConfig
commonPackageEnvironmentConfig sandboxDir = commonPackageEnvironmentConfig sandboxDir =
mempty { mempty {
savedConfigureFlags = mempty { savedConfigureFlags = mempty {
configUserInstall = toFlag False, configUserInstall = toFlag True,
configInstallDirs = sandboxInstallDirs configInstallDirs = sandboxInstallDirs
}, },
savedUserInstallDirs = sandboxInstallDirs, savedUserInstallDirs = sandboxInstallDirs,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment