From 06220a71c1430c97bfcd8012b00530a987e40e97 Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Sat, 23 Mar 2024 00:47:16 +0100 Subject: libstore: convert dumpPath to a generator Change-Id: Ic4cf5562504aa29130304469936f958c0426e5ef --- src/libstore/build/local-derivation-goal.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libstore/build') diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index fb86a9d18..347f91f54 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -2158,7 +2158,7 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs() /* FIXME: Is this actually streaming? */ auto source = sinkToSource([&](Sink & nextSink) { RewritingSink rsink(rewrites, nextSink); - dumpPath(actualPath, rsink); + rsink << dumpPath(actualPath); rsink.flush(); }); Path tmpPath = actualPath + ".tmp"; @@ -2224,7 +2224,7 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs() [&](const FileIngestionMethod & m2) { switch (m2) { case FileIngestionMethod::Recursive: - dumpPath(actualPath, caSink); + caSink << dumpPath(actualPath); break; case FileIngestionMethod::Flat: readFileSource(actualPath)->drainInto(caSink); -- cgit v1.2.3