fix recurseForDerivations evaluation in force-recurse mode

This commit is contained in:
Julien Malka 2023-04-24 17:08:57 +02:00
parent a5bb26e9ea
commit 4d674c352e
No known key found for this signature in database
GPG key ID: 6FC74C847011FD83

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(