Skip to content

Commit 7b2e363

Browse files
committed
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'.
1 parent 51bdff5 commit 7b2e363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal-install/Distribution/Client/PackageEnvironment.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ commonPackageEnvironmentConfig :: FilePath -> SavedConfig
9999
commonPackageEnvironmentConfig sandboxDir =
100100
mempty {
101101
savedConfigureFlags = mempty {
102-
configUserInstall = toFlag False,
102+
configUserInstall = toFlag True,
103103
configInstallDirs = sandboxInstallDirs
104104
},
105105
savedUserInstallDirs = sandboxInstallDirs,

0 commit comments

Comments
 (0)