From 69505c84e14146f3dddadb2202bf049646d1125b Mon Sep 17 00:00:00 2001 From: regnat Date: Thu, 3 Jun 2021 15:29:12 +0200 Subject: [PATCH] Commit the cache at the end of the evaluation Otherwise the db is never properly filled --- src/libexpr/eval.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index d7c1f65fb..32be044f3 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -444,6 +444,9 @@ EvalState::EvalState(const Strings & _searchPath, ref store) EvalState::~EvalState() { + for (auto [_, cache] : evalCache) { + cache->commit(); + } }