From ac20dfbdd4d1ff1752c6dd7fe10905a5cd8ef049 Mon Sep 17 00:00:00 2001 From: Frothy <76622149+FrothyMarrow@users.noreply.github.com> Date: Tue, 21 May 2024 06:51:56 -0400 Subject: [PATCH] lib: add deprecation warning for `__empty` --- lib/lua.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/lua.nix b/lib/lua.nix index e871317..68056b1 100644 --- a/lib/lua.nix +++ b/lib/lua.nix @@ -65,6 +65,11 @@ in rec { then if isLuaInline args then args.expr + else if hasAttr "__empty" args + then + lib.warn '' + Using `__empty` to define an empty lua table is deprecated. Use an empty attrset instead. + '' "{ }" else "{" + (concatStringsSep ","