File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ Bug fixes:
22
22
[ #5545 ] ( https://github.com/commercialhaskell/stack/issues/5545 )
23
23
* Bump ` pantry ` version for better OS support. See
24
24
[ pantry #33 ] ( https://github.com/commercialhaskell/pantry/issues/33 )
25
+ * When building the sanity check for a new GHC install, make sure to clear
26
+ ` GHC_PACKAGE_PATH ` .
25
27
26
28
27
29
## v2.7.1
Original file line number Diff line number Diff line change @@ -673,9 +673,16 @@ ensureSandboxedCompiler sopts getSetupInfo' = do
673
673
case res of
674
674
Left _ -> loop xs
675
675
Right y -> parseAbsFile y
676
- compiler <- withProcessContext menv $ loop names
676
+ compiler <- withProcessContext menv $ do
677
+ compiler <- loop names
678
+
679
+ -- Run this here to ensure that the sanity check uses the modified
680
+ -- environment, otherwise we may infect GHC_PACKAGE_PATH and break sanity
681
+ -- checks.
682
+ when (soptsSanityCheck sopts) $ sanityCheck compiler
683
+
684
+ pure compiler
677
685
678
- when (soptsSanityCheck sopts) $ sanityCheck compiler
679
686
cp <- pathsFromCompiler wc compilerBuild True compiler
680
687
pure (cp, paths)
681
688
You can’t perform that action at this time.
0 commit comments