Skip to content

Commit

Permalink
Merge pull request #10197 from edolstra/github-treehash
Browse files Browse the repository at this point in the history
GitHub fetcher: Don't emit treeHash yet
  • Loading branch information
thufschmitt authored Mar 8, 2024
2 parents 61b006d + 6d24518 commit ef5cb44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libfetchers/github.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ struct GitArchiveInputScheme : InputScheme
"narHash",
"lastModified",
"host",
"treeHash",
};
}

Expand Down Expand Up @@ -268,7 +269,9 @@ struct GitArchiveInputScheme : InputScheme
{
auto [input, tarballInfo] = downloadArchive(store, _input);

#if 0
input.attrs.insert_or_assign("treeHash", tarballInfo.treeHash.gitRev());
#endif
input.attrs.insert_or_assign("lastModified", uint64_t(tarballInfo.lastModified));

auto accessor = getTarballCache()->getAccessor(tarballInfo.treeHash, false);
Expand Down

0 comments on commit ef5cb44

Please sign in to comment.