1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 13:11:00 +01:00

DummyStore build trace holds UnkeyedRealisation by value

Otherwise the equality instance we need to add will be messed up.
This commit is contained in:
John Ericson 2025-11-24 15:03:46 -05:00
parent f78e88c973
commit b0c016ae7d
3 changed files with 5 additions and 6 deletions

View file

@ -27,7 +27,7 @@ TEST(DummyStore, realisation_read)
.outPath = StorePath{"g1w7hy3qg1w7hy3qg1w7hy3qg1w7hy3q-foo.drv"},
};
store->buildTrace.insert({drvHash, {{outputName, make_ref<UnkeyedRealisation>(value)}}});
store->buildTrace.insert({drvHash, {{outputName, value}}});
auto value2 = store->queryRealisation({drvHash, outputName});