From 4e2a0221653da2e541dd1197d2afdf87b1c14255 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 29 Sep 2024 16:25:07 +0100 Subject: [PATCH] lib/to-lua: fix `allowUnkeyedAttrs` option --- lib/to-lua.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/to-lua.nix b/lib/to-lua.nix index dcf13ae7..4c4c7434 100644 --- a/lib/to-lua.nix +++ b/lib/to-lua.nix @@ -250,7 +250,7 @@ rec { + lib.concatStringsSep ("," + introSpace) ( lib.mapAttrsToList ( name: value: - (if allowExplicitEmpty && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ") + (if allowUnkeyedAttrs && lib.hasPrefix "__unkeyed" name then "" else toTableKey name + " = ") + lib.addErrorContext "while evaluating an attribute `${name}`" (go (indent + " ") value) ) v )