1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-23 10:49:36 +01:00

SourceAccessor::readFile(): Support reading into a sink

This commit is contained in:
Eelco Dolstra 2023-10-20 16:36:41 +02:00
parent 7a086a32bc
commit 57db3be9e4
5 changed files with 94 additions and 13 deletions

View file

@ -17,7 +17,7 @@ StorePath InputAccessor::fetchToStore(
if (method == FileIngestionMethod::Recursive)
dumpPath(path, sink, filter ? *filter : defaultPathFilter);
else
sink(readFile(path)); // FIXME: stream
readFile(path, sink);
});
auto storePath =