From 4d674c352e1292bbf5f28f50b6c8eac86ea8bdff Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Mon, 24 Apr 2023 17:08:57 +0200 Subject: [PATCH] fix recurseForDerivations evaluation in force-recurse mode --- src/nix-eval-jobs.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nix-eval-jobs.cc b/src/nix-eval-jobs.cc index 49aca05..d07d3d2 100644 --- a/src/nix-eval-jobs.cc +++ b/src/nix-eval-jobs.cc @@ -328,7 +328,8 @@ static void worker(ref state, Bindings &autoArgs, AutoCloseFD &to, const std::string &name = state->symbols[i->name]; attrs.push_back(name); - if (name == "recurseForDerivations") { + if (name == "recurseForDerivations" && + !myArgs.forceRecurse) { auto attrv = v->attrs->get(state->sRecurseForDerivations); recurse = state->forceBool(