Merge pull request #5542 from samueldr/fix/registry-experimental

nix registry: Mark experimental
This commit is contained in:
Eelco Dolstra 2021-11-12 10:37:00 +01:00 committed by GitHub
commit c78155b436
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -226,6 +226,7 @@ struct CmdRegistry : virtual NixMultiCommand
void run() override
{
settings.requireExperimentalFeature(Xp::Flakes);
if (!command)
throw UsageError("'nix registry' requires a sub-command.");
command->second->prepare();