about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorAspen Smith <root@gws.fyi>2024-02-09T17·59-0500
committeraspen <root@gws.fyi>2024-02-09T19·11+0000
commit3fb0697a713cdd5b0c22b3c511419ba3a281746a (patch)
tree4cc88884ea59a3da8d9fcfcdf7e1110757b260d0 /tools
parent7a589b3ec67e49edc6de1d3378db1c4c594210f1 (diff)
fix(tvix/eval): Propagate catchables in NixAttrs::construct r/7492
Correctly propagate the case where the *key* of an attrset is a
Value::Catchable (eg { "${builtins.throw "c"}" = "b"; }) in
`NixAttrs::construct`, by converting the return type to
`Result<Result<Self, CatchableErrorKind>, ErrorKind>` (ugh!!) and
correctly handling that everywhere (including an `expect` in the
Deserialize impl for NixAttrs, since afaict this is impossible to hit
when deserializing from stuff like JSON).

Change-Id: Ic4bc611fbfdab27c0bd8a40759689a87c4004a17
Reviewed-on: https://cl.tvl.fyi/c/depot/+/10786
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions