Skip to content

Commit 3b71df2

Browse files
committed
chore(cli) emit deprecation warn for lua db_import
1 parent ebd71ae commit 3b71df2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kong/cmd/config.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ local function execute(args)
105105
end
106106
filename = pl_path.abspath(filename)
107107

108+
if pl_path.extension(filename) == ".lua" then
109+
log.warn("db_import of .lua files is deprecated; please convert your file into .yaml or .json")
110+
end
111+
108112
local entities, err, _, meta = dc:parse_file(filename, accepted_formats)
109113
if not entities then
110114
error("Failed parsing:\n" .. err)

0 commit comments

Comments
 (0)