Skip to content

Commit

Permalink
Only show warning after v25.05
Browse files Browse the repository at this point in the history
Co-authored-by: Silvan Mosberger <[email protected]>
  • Loading branch information
linnnus and infinisil authored Dec 23, 2024
1 parent 9da2f54 commit 3a3b7c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/generators.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
Expand Down

0 comments on commit 3a3b7c5

Please sign in to comment.