From 0131c22c369f8c4c661aea7a395e94669a7f5974 Mon Sep 17 00:00:00 2001 From: DavHau Date: Thu, 25 Aug 2022 14:16:11 +0200 Subject: [PATCH] fix: simpleTranslate2: don't compute cyclic deps if deps on empty dep graph --- src/lib/simpleTranslate2.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/simpleTranslate2.nix b/src/lib/simpleTranslate2.nix index 64fc3b0a..ab5f6d6a 100644 --- a/src/lib/simpleTranslate2.nix +++ b/src/lib/simpleTranslate2.nix @@ -179,6 +179,11 @@ relevantDependencies; cyclicDependencies = + if dependencyGraph == {} + then {} + else cyclicDependencies'; + + cyclicDependencies' = # TODO: inefficient! Implement some kind of early cutoff let depGraphWithFakeRoot =