Don’t check the deriver field on computeFSClosure

That doesn’t really make sense with CA derivations (and wasn’t even
really correct before because of FO derivations, though that probably
didn’t matter much in practice)
This commit is contained in:
regnat 2021-06-12 12:24:53 +02:00
parent 7ac038fa4b
commit 96d7170e12

View file

@ -30,7 +30,7 @@ void Store::computeFSClosure(const StorePathSet & startPaths,
if (includeDerivers && path.isDerivation())
for (auto& [_, maybeOutPath] : queryPartialDerivationOutputMap(path))
if (maybeOutPath && isValidPath(*maybeOutPath) && queryPathInfo(*maybeOutPath)->deriver == path)
if (maybeOutPath && isValidPath(*maybeOutPath))
res.insert(*maybeOutPath);
return res;
};