From 21ea00d3ecc5428bcb02e8a7174cfd82ed421b2f Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Mon, 31 Dec 2018 10:18:28 -0600 Subject: [PATCH] EvalState::resetFileCache: clear parse cache as well as eval cache Fixes #2546. (at least the basic reproduction I've been testing) --- src/libexpr/eval.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index ab407e569..2a194d0e0 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(); }