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 @@ -22,6 +22,9 @@ Bug fixes:
22
22
23
23
* Restore building of Stack with Cabal flag ` disable-git-info ` (broken with
24
24
Stack 2.11.1).
25
+ * Stack's sanity check on a selected GHC now passes GHC flag
26
+ ` -hide-all-packages ` , stopping GHC from looking for a package environment in
27
+ default locations.
25
28
26
29
## v2.11.1 - 2023-05-18
27
30
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