mirror of
https://github.com/NixOS/nix
synced 2025-07-02 13:31:48 +02:00
Rename fetch() -> fetchToStore(), lazyFetch() -> getAccessor()
This commit is contained in:
parent
7a64bb7f1c
commit
1790698a74
11 changed files with 25 additions and 58 deletions
|
@ -231,7 +231,7 @@ FlakeRef FlakeRef::fromAttrs(const fetchers::Attrs & attrs)
|
|||
|
||||
std::pair<ref<InputAccessor>, FlakeRef> FlakeRef::lazyFetch(ref<Store> store) const
|
||||
{
|
||||
auto [accessor, lockedInput] = input.lazyFetch(store);
|
||||
auto [accessor, lockedInput] = input.getAccessor(store);
|
||||
return {accessor, FlakeRef(std::move(lockedInput), subdir)};
|
||||
}
|
||||
|
||||
|
|
|
@ -184,7 +184,7 @@ static void fetchTree(
|
|||
state.debugThrowLastTrace(EvalError("in pure evaluation mode, 'fetchTree' requires a locked input, at %s", state.positions[pos]));
|
||||
|
||||
if (params.returnPath) {
|
||||
auto [accessor, input2] = input.lazyFetch(state.store);
|
||||
auto [accessor, input2] = input.getAccessor(state.store);
|
||||
|
||||
state.registerAccessor(accessor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue