lib: add deprecation warning for `__empty`

This commit is contained in:
Frothy 2024-05-21 06:51:56 -04:00
parent af72dc105d
commit ac20dfbdd4
1 changed files with 5 additions and 0 deletions

View File

@ -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 ","