mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-19 09:36:47 +02:00
fixup: Compute fingerprint only if needed
This commit is contained in:
parent
1c4e392c64
commit
19cc50dcbf
1 changed files with 3 additions and 3 deletions
|
@ -464,10 +464,10 @@ ref<eval_cache::EvalCache> openEvalCache(
|
|||
return aOutputs->value;
|
||||
};
|
||||
|
||||
if (hash) {
|
||||
auto search = state.evalCaches.find(hash.value());
|
||||
if (fingerprint) {
|
||||
auto search = state.evalCaches.find(fingerprint.value());
|
||||
if (search == state.evalCaches.end()) {
|
||||
search = state.evalCaches.emplace(hash.value(), make_ref<nix::eval_cache::EvalCache>(hash, state, rootLoader)).first;
|
||||
search = state.evalCaches.emplace(fingerprint.value(), make_ref<nix::eval_cache::EvalCache>(fingerprint, state, rootLoader)).first;
|
||||
}
|
||||
return search->second;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue