diff options
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 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; } }, |