diff options
author | eldritch horrors <pennae@lix.systems> | 2024-03-23 00:47:16 +0100 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-07-05 22:28:16 +0000 |
commit | 06220a71c1430c97bfcd8012b00530a987e40e97 (patch) | |
tree | 69f230d669db2804379a33fc1ec6e3d3fc908c67 /src/libstore/build | |
parent | b51ea465de48e4c5516ba0182cc642b4e644be10 (diff) |
libstore: convert dumpPath to a generator
Change-Id: Ic4cf5562504aa29130304469936f958c0426e5ef
Diffstat (limited to 'src/libstore/build')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |