mirror of
https://github.com/NixOS/nix.git
synced 2025-11-30 06:01:00 +01:00
GitHub fetcher: Restore the lastModified field
This commit is contained in:
parent
37d859ba22
commit
a115c4f4b2
3 changed files with 46 additions and 10 deletions
|
|
@ -85,6 +85,13 @@ struct InputAccessor : public std::enable_shared_from_this<InputAccessor>
|
|||
virtual std::string showPath(const CanonPath & path);
|
||||
|
||||
SourcePath root();
|
||||
|
||||
/* Return the maximum last-modified time of the files in this
|
||||
tree, if available. */
|
||||
virtual std::optional<time_t> getLastModified()
|
||||
{
|
||||
return std::nullopt;
|
||||
}
|
||||
};
|
||||
|
||||
typedef std::function<RestrictedPathError(const CanonPath & path)> MakeNotAllowedError;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue