diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-11-29 10:51:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-29 10:51:41 +0100 |
commit | 3d36f48acb90c846ea5f82655161fb07eb6ba2f6 (patch) | |
tree | f41ff6ca175c16a2d8a8f0e7b4c96c8ea3e9628d /src/libcmd | |
parent | 5c9a1ef30c3cd98cd2231a46be690e689d7215de (diff) | |
parent | 3a0277305a5d86f29e5bdc1c425c45e4bd7dbe71 (diff) |
Merge pull request #5667 from NixOS/5661-dont-complete-flakes-without-xp-feature
Don’t try to complete flakes is the feature isn’t enabled
Diffstat (limited to 'src/libcmd')
-rw-r--r-- | src/libcmd/installables.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libcmd/installables.cc b/src/libcmd/installables.cc index 5758b52ad..ef200b1d2 100644 --- a/src/libcmd/installables.cc +++ b/src/libcmd/installables.cc @@ -291,6 +291,9 @@ void completeFlakeRefWithFragment( void completeFlakeRef(ref<Store> store, std::string_view prefix) { + if (!settings.isExperimentalFeatureEnabled(Xp::Flakes)) + return; + if (prefix == "") completions->add("."); |