mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-16 23:27:17 +02:00
GitHub fetcher: Don't emit treeHash yet
But do accept it if it's there, so we don't choke on future lock files that do have the treeHash attribute.
This commit is contained in:
parent
61b006ddf6
commit
6d245182e8
1 changed files with 3 additions and 0 deletions
|
@ -111,6 +111,7 @@ struct GitArchiveInputScheme : InputScheme
|
||||||
"narHash",
|
"narHash",
|
||||||
"lastModified",
|
"lastModified",
|
||||||
"host",
|
"host",
|
||||||
|
"treeHash",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -268,7 +269,9 @@ struct GitArchiveInputScheme : InputScheme
|
||||||
{
|
{
|
||||||
auto [input, tarballInfo] = downloadArchive(store, _input);
|
auto [input, tarballInfo] = downloadArchive(store, _input);
|
||||||
|
|
||||||
|
#if 0
|
||||||
input.attrs.insert_or_assign("treeHash", tarballInfo.treeHash.gitRev());
|
input.attrs.insert_or_assign("treeHash", tarballInfo.treeHash.gitRev());
|
||||||
|
#endif
|
||||||
input.attrs.insert_or_assign("lastModified", uint64_t(tarballInfo.lastModified));
|
input.attrs.insert_or_assign("lastModified", uint64_t(tarballInfo.lastModified));
|
||||||
|
|
||||||
auto accessor = getTarballCache()->getAccessor(tarballInfo.treeHash, false);
|
auto accessor = getTarballCache()->getAccessor(tarballInfo.treeHash, false);
|
||||||
|
|
Loading…
Add table
Reference in a new issue