mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Split tarball-specific logic from GitFileSystemObjectSink
This commit is contained in:
parent
5e83c0427f
commit
e0012b97ab
5 changed files with 37 additions and 20 deletions
|
@ -255,11 +255,12 @@ struct GitArchiveInputScheme : InputScheme
|
|||
});
|
||||
|
||||
TarArchive archive { *source };
|
||||
auto parseSink = getTarballCache()->getFileSystemObjectSink();
|
||||
auto tarballCache = getTarballCache();
|
||||
auto parseSink = tarballCache->getFileSystemObjectSink();
|
||||
auto lastModified = unpackTarfileToSink(archive, *parseSink);
|
||||
|
||||
TarballInfo tarballInfo {
|
||||
.treeHash = parseSink->sync(),
|
||||
.treeHash = tarballCache->dereferenceSingletonDirectory(parseSink->sync()),
|
||||
.lastModified = lastModified
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue