about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2022-11-20T22·52+0100
committertazjin <tazjin@tvl.su>2022-11-21T15·26+0000
commit878dc6c22717971f5dd4720f314f36c47a0c762e (patch)
tree2f117566e5adc825552570de70d2ca6d9b48695f /src/libutil/util.cc
parentf7907db69d07d9358a269e86237524b0142c23c0 (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 'src/libutil/util.cc')
0 files changed, 0 insertions, 0 deletions