206: fix recurseForDerivations evaluation in force-recurse mode r=Mic92 a=JulienMalka



Co-authored-by: Julien Malka <julien@malka.sh>
This commit is contained in:
bors[bot] 2023-04-25 11:13:30 +00:00 committed by GitHub
commit 5bff47314a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -328,7 +328,8 @@ static void worker(ref<EvalState> state, Bindings &autoArgs, AutoCloseFD &to,
const std::string &name = state->symbols[i->name]; const std::string &name = state->symbols[i->name];
attrs.push_back(name); attrs.push_back(name);
if (name == "recurseForDerivations") { if (name == "recurseForDerivations" &&
!myArgs.forceRecurse) {
auto attrv = auto attrv =
v->attrs->get(state->sRecurseForDerivations); v->attrs->get(state->sRecurseForDerivations);
recurse = state->forceBool( recurse = state->forceBool(