1
0
Fork 0
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:
Eelco Dolstra 2025-04-09 17:59:51 +02:00
parent e76bbe413e
commit 77d4316353
2 changed files with 8 additions and 1 deletions

View file

@ -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));
}