mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
getFlake(): Don't use registries for refetching
`newLockedRef` is already resolved so there is no need to re-resolve it.
This commit is contained in:
parent
27047570b5
commit
953ec00794
1 changed files with 1 additions and 1 deletions
|
@ -356,7 +356,7 @@ static Flake getFlake(
|
|||
debug("refetching input '%s' due to self attribute", newLockedRef);
|
||||
// FIXME: need to remove attrs that are invalidated by the changed input attrs, such as 'narHash'.
|
||||
newLockedRef.input.attrs.erase("narHash");
|
||||
auto cachedInput2 = state.inputCache->getAccessor(state.store, newLockedRef.input, useRegistries);
|
||||
auto cachedInput2 = state.inputCache->getAccessor(state.store, newLockedRef.input, fetchers::UseRegistries::No);
|
||||
cachedInput.accessor = cachedInput2.accessor;
|
||||
lockedRef = FlakeRef(std::move(cachedInput2.lockedInput), newLockedRef.subdir);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue