about summary refs log tree commit diff
path: root/src/libexpr
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-12-31T16·18-0600
committerWill Dietz <w@wdtz.org>2018-12-31T16·18-0600
commit21ea00d3ecc5428bcb02e8a7174cfd82ed421b2f (patch)
treeed28314dc013f6a0bf6801bc176abba2072200f0 /src/libexpr
parentff342fc0c2be662dd9791ff32b4d6d63e35aa2e9 (diff)
EvalState::resetFileCache: clear parse cache as well as eval cache
Fixes #2546.

(at least the basic reproduction I've been testing)
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index ab407e56907c..2a194d0e08c9 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -757,6 +757,7 @@ void EvalState::evalFile(const Path & path_, Value & v)
 void EvalState::resetFileCache()
 {
     fileEvalCache.clear();
+    fileParseCache.clear();
 }