Put back nicer copyClosure instead of manual closure + copy

It looks like we accidentally got the old code back, probably after a merge
conflict resolution.
This commit is contained in:
John Ericson 2023-12-04 17:41:11 -05:00
parent 8046ec2668
commit e3443cd22a

View file

@ -535,9 +535,9 @@ Step::ptr State::createStep(ref<Store> destStore,
// FIXME: should copy directly from substituter to destStore.
}
StorePathSet closure;
localStore->computeFSClosure({*path}, closure);
copyPaths(*localStore, *destStore, closure, NoRepair, CheckSigs, NoSubstitute);
copyClosure(*localStore, *destStore,
StorePathSet { *path },
NoRepair, CheckSigs, NoSubstitute);
time_t stopTime = time(0);