mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
Accept and discard fragments in getFlakeRefForCompletion
Otherwise trying to complete `nix build foo#bar --update-input <Tab>` fails with "unexpected fragment"
This commit is contained in:
parent
c28e2b1b29
commit
7f5cf87d56
2 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ struct InstallableCommand : virtual Args, SourceExprCommand
|
|||
|
||||
std::optional<FlakeRef> getFlakeRefForCompletion() override
|
||||
{
|
||||
return parseFlakeRef(_installable, absPath("."));
|
||||
return parseFlakeRefWithFragment(_installable, absPath(".")).first;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue