libexpr: really forceValue everything

This commit is contained in:
Max Headroom 2023-12-07 15:17:34 +01:00
parent cb968c096f
commit 661b025c79

View file

@ -77,8 +77,7 @@ static std::tuple<StorePath, FlakeRef, FlakeRef> fetchOrSubstituteTree(
static void forceTrivialValue(EvalState & state, Value & value, const PosIdx pos) static void forceTrivialValue(EvalState & state, Value & value, const PosIdx pos)
{ {
if (value.isThunk()) // HACK: always forceValue, even if not trivial state.forceValue(value, pos);
state.forceValue(value, pos);
} }