From 49d61b2e4bf338042364c85d3c2ead0b33963e65 Mon Sep 17 00:00:00 2001 From: piegames Date: Sat, 13 Jul 2024 05:24:41 +0200 Subject: libexpr: Introduce Deprecated features They are like experimental features, but opt-in instead of opt-out. They will allow us to gracefully remove language features. See #437 Change-Id: I9ca04cc48e6926750c4d622c2b229b25cc142c42 --- src/nix/main.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/nix/main.cc') diff --git a/src/nix/main.cc b/src/nix/main.cc index 9cbe303ac..5356a0d04 100644 --- a/src/nix/main.cc +++ b/src/nix/main.cc @@ -14,6 +14,7 @@ #include "loggers.hh" #include "markdown.hh" #include "experimental-features-json.hh" +#include "deprecated-features-json.hh" #include #include @@ -422,6 +423,11 @@ void mainWrapped(int argc, char * * argv) return; } + if (argc == 2 && std::string(argv[1]) == "__dump-dp-features") { + logger->cout(documentDeprecatedFeatures().dump()); + return; + } + Finally printCompletions([&]() { if (args.completions) { -- cgit v1.2.3