snix/tvix/eval/src/tests/tvix_tests/eval-okay-builtins-tojson-outpath-nested.nix
Vincent Ambo dfd0066de5 fix(tvix/eval): handle toJSON on attribute sets with outPath
These are serialised as the serialisation of the value of that field.

Change-Id: Ida51708b1f43ce09b0ec835f4e265918aa31dd09
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8205
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
2023-03-13 20:30:59 +00:00

8 lines
151 B
Nix

# Attribute sets with an `outPath` can contain _any_ serialisable
# value in that field.
builtins.toJSON {
outPath = {
a = 40;
b = 2;
};
}