1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-13 22:12:43 +01:00

lockFlake(): Allow registry lookups for the top-level flake

Fixes #13050.

(cherry picked from commit 68de26d38a)
This commit is contained in:
Eelco Dolstra 2025-04-24 18:54:16 +02:00
parent 3019007eb5
commit dfbb52e6bd
9 changed files with 55 additions and 26 deletions

View file

@ -40,7 +40,7 @@ void completeFlakeInputAttrPath(
std::string_view prefix)
{
for (auto & flakeRef : flakeRefs) {
auto flake = flake::getFlake(*evalState, flakeRef, true);
auto flake = flake::getFlake(*evalState, flakeRef, fetchers::UseRegistries::All);
for (auto & input : flake.inputs)
if (hasPrefix(input.first, prefix))
completions.add(input.first);