mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 00:08:07 +02:00
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
1 changed files with 2 additions and 1 deletions
|
@ -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