Fix "non-zero padding" error
Probably it's not a good idea to pass a temporary object to StringSource.
This commit is contained in:
parent
8cf672091e
commit
5e2ffd0b8a
|
@ -1332,7 +1332,8 @@ void DerivationGoal::buildDone()
|
|||
StringSink sink;
|
||||
dumpPath(path, sink);
|
||||
deletePath(path);
|
||||
StringSource source(rewriteHashes(sink.s, rewritesFromTmp));
|
||||
sink.s = rewriteHashes(sink.s, rewritesFromTmp);
|
||||
StringSource source(sink.s);
|
||||
restorePath(path, source);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue