Skip to content

Commit

Permalink
Use userInstallDirs as the sandbox location.
Browse files Browse the repository at this point in the history
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
23Skidoo committed Dec 5, 2012
1 parent 51bdff5 commit 7b2e363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cabal-install/Distribution/Client/PackageEnvironment.hs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ commonPackageEnvironmentConfig :: FilePath -> SavedConfig
commonPackageEnvironmentConfig sandboxDir =
mempty {
savedConfigureFlags = mempty {
configUserInstall = toFlag False,
configUserInstall = toFlag True,
configInstallDirs = sandboxInstallDirs
},
savedUserInstallDirs = sandboxInstallDirs,
Expand Down

0 comments on commit 7b2e363

Please sign in to comment.