1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 23:03:53 -04:00

Merge pull request #10197 from edolstra/github-treehash

GitHub fetcher: Don't emit treeHash yet
This commit is contained in:
Théophane Hufschmitt 2024-03-08 14:14:51 +01:00 committed by GitHub
commit ef5cb44608
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);