mirror of
https://github.com/NixOS/nix
synced 2025-06-25 10:41:16 +02:00
lockFlake(): Allow registry lookups for the top-level flake
Fixes #13050.
This commit is contained in:
parent
dda265f09a
commit
68de26d38a
11 changed files with 53 additions and 26 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue