1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-29 21:50:58 +01:00

Rename fetch() -> fetchToStore(), lazyFetch() -> getAccessor()

This commit is contained in:
Eelco Dolstra 2022-07-25 16:30:50 +02:00
parent 7a64bb7f1c
commit 1790698a74
11 changed files with 25 additions and 58 deletions

View file

@ -447,7 +447,7 @@ struct GitInputScheme : InputScheme
return *head;
}
std::pair<StorePath, Input> fetch(ref<Store> store, const Input & _input) override
std::pair<StorePath, Input> fetchToStore(ref<Store> store, const Input & _input) override
{
Input input(_input);
@ -718,7 +718,7 @@ struct GitInputScheme : InputScheme
return {std::move(storePath), input};
}
std::pair<ref<InputAccessor>, Input> lazyFetch(ref<Store> store, const Input & _input) override
std::pair<ref<InputAccessor>, Input> getAccessor(ref<Store> store, const Input & _input) override
{
Input input(_input);
@ -728,7 +728,7 @@ struct GitInputScheme : InputScheme
Nix store. TODO: We could have an accessor for fetching
files from the Git repository directly. */
if (input.getRef() || input.getRev() || !repoInfo.isLocal)
return InputScheme::lazyFetch(store, input);
return InputScheme::getAccessor(store, input);
repoInfo.checkDirty();