mirror of
https://github.com/NixOS/nix.git
synced 2025-12-24 01:41:08 +01:00
Restore the evaluation cache
This commit is contained in:
parent
c73a7584fb
commit
3d27ce36d0
6 changed files with 41 additions and 17 deletions
|
|
@ -104,6 +104,10 @@ public:
|
|||
std::optional<uint64_t> getRevCount() const;
|
||||
std::optional<time_t> getLastModified() const;
|
||||
|
||||
// For locked inputs, returns a string that uniquely specifies the
|
||||
// content of the input (typically a commit hash or content hash).
|
||||
std::optional<std::string> getFingerprint(ref<Store> store) const;
|
||||
|
||||
private:
|
||||
|
||||
void checkLocked(Store & store, const StorePath & storePath, Input & input) const;
|
||||
|
|
@ -156,6 +160,9 @@ struct InputScheme
|
|||
|
||||
virtual bool isRelative(const Input & input) const
|
||||
{ return false; }
|
||||
|
||||
virtual std::optional<std::string> getFingerprint(ref<Store> store, const Input & input) const
|
||||
{ return std::nullopt; }
|
||||
};
|
||||
|
||||
void registerInputScheme(std::shared_ptr<InputScheme> && fetcher);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue