Commit ac8b826c authored by Francesco Gazzetta's avatar Francesco Gazzetta

Check early for failures in new-install

So we don't try to symlink failed packages

Fixes #5550 (the dead symlink part, not the error reporting (#5641))
parent a0684dfc
......@@ -511,6 +511,7 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags, newInstal
printPlan verbosity baseCtx buildCtx
buildOutcomes <- runProjectBuildPhase verbosity baseCtx buildCtx
runProjectPostBuildPhase verbosity baseCtx buildCtx buildOutcomes
let
mkPkgBinDir = (</> "bin") .
......@@ -536,7 +537,6 @@ installAction (configFlags, configExFlags, installFlags, haddockFlags, newInstal
overwritePolicy
mkPkgBinDir symlinkBindir
in traverse_ doSymlink $ Map.toList $ targetsMap buildCtx
runProjectPostBuildPhase verbosity baseCtx buildCtx buildOutcomes
when installLibs $
if supportsPkgEnvFiles
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment