mirror of
https://github.com/NixOS/nix
synced 2025-07-04 15:31:47 +02:00
Get last commit time of github flakes
This commit is contained in:
parent
0f840483c7
commit
ae7b56cd9a
5 changed files with 37 additions and 8 deletions
|
@ -49,6 +49,7 @@ struct CachedDownloadRequest
|
|||
Hash expectedHash;
|
||||
unsigned int ttl = settings.tarballTtl;
|
||||
bool gcRoot = false;
|
||||
bool getLastModified = false;
|
||||
|
||||
CachedDownloadRequest(const std::string & uri)
|
||||
: uri(uri) { }
|
||||
|
@ -62,6 +63,7 @@ struct CachedDownloadResult
|
|||
Path path;
|
||||
std::optional<std::string> etag;
|
||||
std::string effectiveUri;
|
||||
std::optional<time_t> lastModified;
|
||||
};
|
||||
|
||||
class Store;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue