mirror of
https://github.com/NixOS/nix
synced 2025-06-29 06:21:14 +02:00
Actually ignore system/user registries during locking
Something went wrong in #12068 so this didn't work. Also added a test.
This commit is contained in:
parent
e76bbe413e
commit
77d4316353
2 changed files with 8 additions and 1 deletions
|
@ -39,7 +39,7 @@ FlakeRef FlakeRef::resolve(
|
|||
ref<Store> store,
|
||||
const fetchers::RegistryFilter & filter) const
|
||||
{
|
||||
auto [input2, extraAttrs] = lookupInRegistries(store, input);
|
||||
auto [input2, extraAttrs] = lookupInRegistries(store, input, filter);
|
||||
return FlakeRef(std::move(input2), fetchers::maybeGetStrAttr(extraAttrs, "dir").value_or(subdir));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue