mirror of
https://github.com/NixOS/nix.git
synced 2025-12-11 03:21:03 +01:00
Fix printAmbiguous() / printValueAsJSON()
This commit is contained in:
parent
fa5cb62604
commit
f058567e9a
5 changed files with 27 additions and 18 deletions
|
|
@ -31,7 +31,9 @@ json printValueAsJSON(EvalState & state, bool strict,
|
|||
|
||||
case nString:
|
||||
copyContext(v, context);
|
||||
out = v.c_str();
|
||||
// FIXME: only use the context from `v`.
|
||||
// FIXME: make devirtualization configurable?
|
||||
out = state.devirtualize(v.c_str(), context);
|
||||
break;
|
||||
|
||||
case nPath:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue