From 50bf79aaa5233f71eda642ea1705b9bc26750fc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20P=2E=20Ren=C3=A9=20de=20Cotret?= Date: Tue, 30 Nov 2021 17:51:52 -0500 Subject: [PATCH] Corner case of empty runtime dependencies --- lib/Hakyll/Core/Runtime.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Hakyll/Core/Runtime.hs b/lib/Hakyll/Core/Runtime.hs index e674b7ef..899a008b 100644 --- a/lib/Hakyll/Core/Runtime.hs +++ b/lib/Hakyll/Core/Runtime.hs @@ -334,7 +334,10 @@ chase id' = do -- Progress has been made if at least one of the -- requirements can move forwards at the next pass - let progress | length deps < length reqs = Progressed - | otherwise = Idled + -- In some cases, dependencies have been processed in parallel in which case `deps` + -- can be empty, and we can progress to the next stage. See issue #907 + let progress | null deps = Progressed + | deps == reqs = Idled + | otherwise = Progressed return progress