Permalink
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'.
  • Loading branch information...
1 parent 51bdff5 commit 7b2e3630f2ada8a56bf9100144e1bb9acbe6dc6a @23Skidoo committed Dec 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 cabal-install/Distribution/Client/PackageEnvironment.hs
@@ -99,7 +99,7 @@ commonPackageEnvironmentConfig :: FilePath -> SavedConfig
commonPackageEnvironmentConfig sandboxDir =
mempty {
savedConfigureFlags = mempty {
- configUserInstall = toFlag False,
+ configUserInstall = toFlag True,
configInstallDirs = sandboxInstallDirs
},
savedUserInstallDirs = sandboxInstallDirs,

0 comments on commit 7b2e363

Please sign in to comment.