diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-08-19 12:22:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-19 12:22:34 +0200 |
commit | d5e979ab87ab894fde132799dac242780b28bc05 (patch) | |
tree | 91e329b320b69bfbd4a8ac341db5ddad79bf3c7d /src | |
parent | 7aa36ae79673d89e120a97a3c6fd9fbb46ea9da1 (diff) | |
parent | 7d934f7880d460cba1ab908fd35b3d43e97a4749 (diff) |
Merge pull request #6925 from pennae/fod-register-memory
don't read outputs into memory for output rewriting
Diffstat (limited to 'src')
-rw-r--r-- | src/libstore/build/local-derivation-goal.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc index 6843173a7..18b682e13 100644 --- a/src/libstore/build/local-derivation-goal.cc +++ b/src/libstore/build/local-derivation-goal.cc @@ -2374,10 +2374,8 @@ DrvOutputs LocalDerivationGoal::registerOutputs() if (*scratchPath != finalPath) { // Also rewrite the output path auto source = sinkToSource([&](Sink & nextSink) { - StringSink sink; - dumpPath(actualPath, sink); RewritingSink rsink2(oldHashPart, std::string(finalPath.hashPart()), nextSink); - rsink2(sink.s); + dumpPath(actualPath, rsink2); rsink2.flush(); }); Path tmpPath = actualPath + ".tmp"; |