1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 13:11:00 +01:00

NullFileSystemObjectSink: Skip over file contents

This commit is contained in:
Eelco Dolstra 2025-10-17 18:32:47 +02:00
parent daa7e0d2e9
commit 67bffa19a5
3 changed files with 16 additions and 1 deletions

View file

@ -196,6 +196,8 @@ void NullFileSystemObjectSink::createRegularFile(
void isExecutable() override {}
} crf;
crf.skipContents = true;
// Even though `NullFileSystemObjectSink` doesn't do anything, it's important
// that we call the function, to e.g. advance the parser using this
// sink.