mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01:00 +01:00
Restore the evaluation cache
This commit is contained in:
parent
c73a7584fb
commit
3d27ce36d0
6 changed files with 41 additions and 17 deletions
|
|
@ -560,14 +560,11 @@ ref<eval_cache::EvalCache> openEvalCache(
|
|||
EvalState & state,
|
||||
std::shared_ptr<flake::LockedFlake> lockedFlake)
|
||||
{
|
||||
auto fingerprint = lockedFlake->getFingerprint();
|
||||
auto fingerprint = lockedFlake->getFingerprint(state.store);
|
||||
return make_ref<nix::eval_cache::EvalCache>(
|
||||
#if 0
|
||||
evalSettings.useEvalCache && evalSettings.pureEval
|
||||
? std::optional { std::cref(fingerprint) }
|
||||
:
|
||||
#endif
|
||||
std::nullopt,
|
||||
? fingerprint
|
||||
: std::nullopt,
|
||||
state,
|
||||
[&state, lockedFlake]()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue