File tree 2 files changed +9
-0
lines changed
2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ Bug fixes:
25
25
* With ` stack hoogle ` , avoid the message
26
26
` Minimum version is hoogle-5.0. Found acceptable hoogle-<x.y.z> in your index, requiring its installation. `
27
27
when a ` hoogle ` executable has already been found on the ` PATH ` .
28
+ * Stack's sanity check on a selected GHC now passes GHC flag
29
+ ` -hide-all-packages ` , stopping GHC from looking for a package environment in
30
+ default locations.
28
31
29
32
## v2.11.1 - 2023-05-18
30
33
Original file line number Diff line number Diff line change @@ -2348,6 +2348,12 @@ sanityCheck ghc = withSystemTempDir "stack-sanity-check" $ \dir -> do
2348
2348
eres <- withWorkingDir (toFilePath dir) $ proc (toFilePath ghc)
2349
2349
[ fp
2350
2350
, " -no-user-package-db"
2351
+ -- Required to stop GHC looking for a package environment in default
2352
+ -- locations.
2353
+ , " -hide-all-packages"
2354
+ -- Required because GHC flag -hide-all-packages is passed.
2355
+ , " -package base"
2356
+ , " -package Cabal" -- required for "import Distribution.Simple"
2351
2357
] $ try . readProcess_
2352
2358
case eres of
2353
2359
Left e -> prettyThrowIO $ GHCSanityCheckCompileFailed e ghc
You can’t perform that action at this time.
0 commit comments