aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build/local-derivation-goal.cc
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-24 00:44:57 +0100
committereldritch horrors <pennae@lix.systems>2024-07-05 22:28:16 +0000
commitf4f6d1d8e24a092422fcec601e21683179b735c9 (patch)
treee90edb17aea9aefc7449d1b3723ffb3b0a5bec59 /src/libstore/build/local-derivation-goal.cc
parent06220a71c1430c97bfcd8012b00530a987e40e97 (diff)
libutil: convert readFileSource to a generator
Change-Id: I5f92b15fd367d46eb047d74ab6e317b4f51a46d3
Diffstat (limited to 'src/libstore/build/local-derivation-goal.cc')
-rw-r--r--src/libstore/build/local-derivation-goal.cc4
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 347f91f54..b2a301b00 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -2219,7 +2219,7 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs()
HashModuloSink caSink { outputHash.hashType, oldHashPart };
std::visit(overloaded {
[&](const TextIngestionMethod &) {
- readFileSource(actualPath)->drainInto(caSink);
+ caSink << readFileSource(actualPath);
},
[&](const FileIngestionMethod & m2) {
switch (m2) {
@@ -2227,7 +2227,7 @@ SingleDrvOutputs LocalDerivationGoal::registerOutputs()
caSink << dumpPath(actualPath);
break;
case FileIngestionMethod::Flat:
- readFileSource(actualPath)->drainInto(caSink);
+ caSink << readFileSource(actualPath);
break;
}
},