File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
cabal-install-solver/src/Distribution/Solver/Modular
cabal-install/tests/UnitTests/Distribution/Solver/Modular Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -291,8 +291,8 @@ showOptions verb q xs = showQPN q ++ "; " ++ (L.intercalate ", "
291
291
[if isJust linkedTo
292
292
then showOption q x
293
293
else showI i -- Don't show the package, just the version
294
- | x@ (POption i linkedTo) <- if verb >= verbose then xs else take 3 xs
295
- ] ++ if verb < verbose && length xs >= 3 then " and other versions" else " " )
294
+ | x@ (POption i linkedTo) <- if verb >= verbose then xs else take 1 xs
295
+ ] ++ if verb < verbose && length xs >= 1 then " and other versions" else " " )
296
296
297
297
showGR :: QGoalReason -> String
298
298
showGR UserGoal = " (user goal)"
Original file line number Diff line number Diff line change @@ -993,12 +993,10 @@ tests =
993
993
[ Right $ exAv " A" 1 []
994
994
, Right $ exAv " A" 2 []
995
995
, Right $ exAv " A" 3 []
996
- , Right $ exAv " A" 4 []
997
- , Right $ exAv " A" 5 []
998
- , Right $ exAv " B" 1 [ExFix " A" 6 ]
996
+ , Right $ exAv " B" 1 [ExFix " A" 4 ]
999
997
]
1000
- rejecting = " rejecting: A-5 .0.0 (conflict: B => A==6 .0.0)"
1001
- skipping = " skipping: A; 4.0.0, 3.0.0, 2.0.0 and other versions (has"
998
+ rejecting = " rejecting: A-3 .0.0 (conflict: B => A==4 .0.0)"
999
+ skipping = " skipping: A; 2.0.0 and other versions (has"
1002
1000
in mkTest db " show summarized skipping versions list" [" B" ] $
1003
1001
solverFailure (\ msg -> rejecting `isInfixOf` msg && skipping `isInfixOf` msg)
1004
1002
]
You can’t perform that action at this time.
0 commit comments