1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 05:01:48 +02:00

Actually ignore system/user registries during locking

Something went wrong in #12068 so this didn't work. Also added a test.

(cherry picked from commit 77d4316353)
This commit is contained in:
Eelco Dolstra 2025-04-09 17:59:51 +02:00 committed by Mergify
parent c548e92860
commit a08477975d
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));
}