mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-12 15:28:29 +01:00
Add max-backjumps and reorder-goals
This commit is contained in:
parent
a52e8d67b4
commit
88cccc742d
@ -73,6 +73,8 @@ build settings' bp = do
|
||||
$ "install"
|
||||
: ("--cabal-lib-version=" ++ libVersion)
|
||||
: "--build-log=logs/$pkg.log"
|
||||
: "--max-backjumps=-1"
|
||||
: "--reorder-goals"
|
||||
: "-j"
|
||||
: concat
|
||||
[ bpPackageList bp
|
||||
|
||||
@ -22,7 +22,14 @@ checkPlan bp = do
|
||||
_ <- checkCabalVersion
|
||||
|
||||
putStrLn "Checking build plan"
|
||||
(ec, dryRun', stderr) <- readProcessWithExitCode "cabal" (addCabalArgsOnlyGlobal $ "install":"--dry-run":bpPackageList bp) ""
|
||||
(ec, dryRun', stderr) <- readProcessWithExitCode "cabal"
|
||||
( addCabalArgsOnlyGlobal
|
||||
$ "install"
|
||||
: "--dry-run"
|
||||
: "--max-backjumps=-1"
|
||||
: "--reorder-goals"
|
||||
: bpPackageList bp
|
||||
) ""
|
||||
when (ec /= ExitSuccess || "Warning:" `isPrefixOf` stderr) $ do
|
||||
putStr stderr
|
||||
putStr dryRun'
|
||||
|
||||
Loading…
Reference in New Issue
Block a user