1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-16 22:11:05 +01:00

tarball.cc: Use ETags

This commit is contained in:
Eelco Dolstra 2020-03-18 15:14:23 +01:00
parent 1b49479836
commit c5ec95e2c7
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
7 changed files with 102 additions and 44 deletions

View file

@ -81,7 +81,7 @@ struct GitHubInput : Input
auto json = nlohmann::json::parse(
readFile(
store->toRealPath(
downloadFile(store, url, "source", false))));
downloadFile(store, url, "source", false).storePath)));
rev = Hash(json["sha"], htSHA1);
debug("HEAD revision for '%s' is %s", url, rev->gitRev());
}