File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -431,13 +431,13 @@ selectBestSnapshot
431431 :: (HasConfig env , HasGHCVariant env )
432432 => Path Abs Dir -- ^ project root, used for checking out necessary files
433433 -> [GenericPackageDescription ]
434- -> NonEmpty SnapshotDef
434+ -> NonEmpty SnapName
435435 -> RIO env (SnapshotDef , BuildPlanCheck )
436436selectBestSnapshot root gpds snaps = do
437437 logInfo $ " Selecting the best among "
438438 <> T. pack (show (NonEmpty. length snaps))
439439 <> " snapshots...\n "
440- F. foldr1 go (NonEmpty. map getResult snaps)
440+ F. foldr1 go (NonEmpty. map ( getResult <=< loadResolver . ResolverSnapshot ) snaps)
441441 where
442442 go mold mnew = do
443443 old@ (_snap, bpc) <- mold
Original file line number Diff line number Diff line change @@ -360,8 +360,7 @@ getDefaultResolver whichCmd stackYaml initOpts mresolver bundle = do
360360 selectSnapResolver = do
361361 let gpds = Map. elems (fmap snd bundle)
362362 snaps <- fmap getRecommendedSnapshots getSnapshots'
363- sds <- mapM (loadResolver . ResolverSnapshot ) snaps
364- (s, r) <- selectBestSnapshot (parent stackYaml) gpds sds
363+ (s, r) <- selectBestSnapshot (parent stackYaml) gpds snaps
365364 case r of
366365 BuildPlanCheckFail {} | not (omitPackages initOpts)
367366 -> throwM (NoMatchingSnapshot whichCmd snaps)
You can’t perform that action at this time.
0 commit comments