File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,8 @@ Bug fixes:
56
56
57
57
* The ` config set snapshot ` and ` config set resolver ` commands now respect the
58
58
presence of a synoymous key.
59
+ * Fix a regression introduced in Stack 2.15.1 that caused a 'no operation'
60
+ ` stack build ` to be slower than previously.
59
61
60
62
## v2.15.5 - 2024-03-28
61
63
Original file line number Diff line number Diff line change @@ -829,7 +829,6 @@ processDep ::
829
829
MissingPresentDeps
830
830
)
831
831
processDep pkgId name value = do
832
- mLatestApplicable <- getLatestApplicableVersionAndRev name range
833
832
eRes <- getCachedDepOrAddDep name
834
833
let failure mLatestApp err =
835
834
Left $ Map. singleton name (range, mLatestApp, err)
@@ -844,6 +843,7 @@ processDep pkgId name value = do
844
843
-- spamming the user too much.
845
844
DependencyPlanFailures _ _ ->
846
845
Couldn'tResolveItsDependencies version
846
+ mLatestApplicable <- getLatestApplicableVersionAndRev name range
847
847
pure $ failure mLatestApplicable bd
848
848
Right adr
849
849
| isDepTypeLibrary value. depType && not (adrHasLibrary adr) ->
@@ -853,8 +853,9 @@ processDep pkgId name value = do
853
853
inRange <- adrInRange pkgId name range adr
854
854
pure $ if inRange
855
855
then Right $ processAdr adr
856
- else failure mLatestApplicable (DependencyMismatch $ adrVersion adr)
857
-
856
+ else do
857
+ mLatestApplicable <- getLatestApplicableVersionAndRev name range
858
+ failure mLatestApplicable (DependencyMismatch $ adrVersion adr)
858
859
where
859
860
range = value. versionRange
860
861
version = pkgVersion pkgId
You can’t perform that action at this time.
0 commit comments