We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ebaba5 + a091a81 commit 60667e9Copy full SHA for 60667e9
src/libexpr/eval.cc
@@ -1113,6 +1113,7 @@ void EvalState::resetFileCache()
1113
importResolutionCache->clear();
1114
fileEvalCache->clear();
1115
inputCache->clear();
1116
+ positions.clear();
1117
}
1118
1119
void EvalState::eval(Expr * e, Value & v)
src/libutil/include/nix/util/pos-table.hh
@@ -111,6 +111,16 @@ public:
111
return o->origin;
112
return std::monostate{};
113
114
+
115
+ /**
116
+ * Remove all origins from the table.
117
+ */
118
+ void clear()
119
+ {
120
+ auto lines = linesCache.lock();
121
+ lines->clear();
122
+ origins.clear();
123
+ }
124
};
125
126
} // namespace nix
0 commit comments