mirror of
https://github.com/NixOS/nix.git
synced 2025-12-16 14:01:05 +01:00
Provide a default Input::fetch() that uses lazyFetch()
This commit is contained in:
parent
df713a5d25
commit
c80b942c6e
3 changed files with 21 additions and 7 deletions
|
|
@ -135,7 +135,11 @@ struct InputScheme
|
|||
|
||||
virtual void markChangedFile(const Input & input, std::string_view file, std::optional<std::string> commitMsg);
|
||||
|
||||
virtual std::pair<StorePath, Input> fetch(ref<Store> store, const Input & input) = 0;
|
||||
/* Note: the default implementations of fetch() and lazyFetch()
|
||||
are defined using the other, so implementations have to
|
||||
override at least one. */
|
||||
|
||||
virtual std::pair<StorePath, Input> fetch(ref<Store> store, const Input & input);
|
||||
|
||||
virtual std::pair<ref<InputAccessor>, Input> lazyFetch(ref<Store> store, const Input & input);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue