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:
parent
1b49479836
commit
c5ec95e2c7
7 changed files with 102 additions and 44 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue