fix recurseForDerivations evaluation in force-recurse mode

This commit is contained in:
Julien Malka
2023-04-24 17:17:47 +02:00
parent a5bb26e9ea
commit 4d674c352e
+2 -1
View File
@@ -328,7 +328,8 @@ static void worker(ref<EvalState> 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(