Convert new-build to use InstallPlan.execute
Eliminate the local executeInstallPlan. The main change is that the new execute returns BuildResults instead of an upated InstallPlan. This has a few knock-on conseuqnces for the code that looks at the result of the build execution. Currently we don't actually do that much with the results in the new-build code path (though we should) so there's less disruption than one might imagine. The biggest change is in the integration tests which do inspect the execution result to check things worked or didn't work as expected. The equivalent change for the old build code path will be more disruptive since it does a lot of stuff with the execution results.
Showing
- cabal-install/Distribution/Client/ProjectBuilding.hs 15 additions, 98 deletionscabal-install/Distribution/Client/ProjectBuilding.hs
- cabal-install/Distribution/Client/ProjectOrchestration.hs 14 additions, 7 deletionscabal-install/Distribution/Client/ProjectOrchestration.hs
- cabal-install/Distribution/Client/ProjectPlanning.hs 3 additions, 2 deletionscabal-install/Distribution/Client/ProjectPlanning.hs
- cabal-install/Distribution/Client/ProjectPlanning/Types.hs 4 additions, 2 deletionscabal-install/Distribution/Client/ProjectPlanning/Types.hs
- cabal-install/tests/IntegrationTests2.hs 66 additions, 78 deletionscabal-install/tests/IntegrationTests2.hs
Loading
Please register or sign in to comment