1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-25 03:39:36 +01:00

Fix broken fetchToStore() caching on unlocked inputs

This commit is contained in:
Eelco Dolstra 2025-06-13 15:21:31 +02:00
parent e84daa23f7
commit cbedb8e19a
2 changed files with 7 additions and 1 deletions

View file

@ -355,7 +355,7 @@ std::pair<ref<SourceAccessor>, Input> Input::getAccessorUnchecked(ref<Store> sto
assert(!accessor->getFingerprint(CanonPath::root));
if (auto fingerprint = getFingerprint(store))
if (auto fingerprint = result.getFingerprint(store))
accessor->setFingerprint(*fingerprint);
return {accessor, std::move(result)};