From 3a3b7c57cfe0d3174aca1b1db234e5006d8cc68e Mon Sep 17 00:00:00 2001 From: lignus <64274485+linnnus@users.noreply.github.com> Date: Mon, 23 Dec 2024 09:57:53 +0100 Subject: [PATCH] Only show warning after v25.05 Co-authored-by: Silvan Mosberger --- lib/generators.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/generators.nix b/lib/generators.nix index 400d85eee4d37f..c55ace0251fe94 100644 --- a/lib/generators.nix +++ b/lib/generators.nix @@ -605,8 +605,7 @@ in rec { ]) x)); in - # TODO: As discussed in #356502, we should do the actual deprecation in a future release cycle. - lib.warnIf (!escape) "Using `lib.generators.toPlist` without `escape = true` is deprecated" + lib.warnIf (!escape && lib.oldestSupportedReleaseIsAtLeast 2505) "Using `lib.generators.toPlist` without `escape = true` is deprecated" ''