1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

New CLI flag --replace-eval-errors

Co-authored-by: Farid Zakaria <farid.m.zakaria@gmail.com>
This commit is contained in:
Shahar "Dawn" Or 2025-05-12 18:44:07 +07:00
parent cdbe788c1f
commit 88705f848b
14 changed files with 93 additions and 20 deletions

View file

@ -1388,7 +1388,7 @@ static void derivationStrictInternal(
if (i->name == state.sStructuredAttrs) continue;
jsonObject->emplace(key, printValueAsJSON(state, true, *i->value, pos, context));
jsonObject->emplace(key, printValueAsJSON(state, true, false, *i->value, pos, context));
if (i->name == state.sBuilder)
drv.builder = state.forceString(*i->value, context, pos, context_below);
@ -2328,7 +2328,7 @@ static void prim_toJSON(EvalState & state, const PosIdx pos, Value * * args, Val
{
std::ostringstream out;
NixStringContext context;
printValueAsJSON(state, true, *args[0], pos, out, context);
printValueAsJSON(state, true, false, *args[0], pos, out, context);
v.mkString(toView(out), context);
}