diff options
author | Vincent Ambo <mail@tazj.in> | 2022-11-20T22·52+0100 |
---|---|---|
committer | tazjin <tazjin@tvl.su> | 2022-11-21T15·26+0000 |
commit | 878dc6c22717971f5dd4720f314f36c47a0c762e (patch) | |
tree | 2f117566e5adc825552570de70d2ca6d9b48695f /third_party/lisp | |
parent | f7907db69d07d9358a269e86237524b0142c23c0 (diff) |
fix(tvix/eval): aggressively fix a borrow error in nix_eq r/5299
When comparing Nix values for equality, an issue can occur where recursive values contain thunks to themselves which causes borrow errors when forcing them for comparison later down the line. To work around this we clone the values for now. There might be some optimisations possible like checking for thunk equality directly and short-circuiting on that (we have to check what Nix does). Change-Id: I7e75c992ea68f100058f52b4b46168da7d671994 Reviewed-on: https://cl.tvl.fyi/c/depot/+/7314 Reviewed-by: sterni <sternenseemann@systemli.org> Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/lisp')
0 files changed, 0 insertions, 0 deletions