From 8a58cf9cb94e016c8a2297f1edab6b883d02e847 Mon Sep 17 00:00:00 2001 From: Akaps316 <48785708+Akaps316@users.noreply.github.com> Date: Sat, 18 Apr 2026 13:05:03 +0530 Subject: fix(depgraph): wrap deps in table to avoid json string literal on single dep --- .../objc/macapp_external_dylib/ext/libextfoo.dylib | Bin 0 -> 16800 bytes xmake/plugins/show/info/depgraph.lua | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100755 tests/projects/objc/macapp_external_dylib/ext/libextfoo.dylib diff --git a/tests/projects/objc/macapp_external_dylib/ext/libextfoo.dylib b/tests/projects/objc/macapp_external_dylib/ext/libextfoo.dylib new file mode 100755 index 000000000..c92515666 Binary files /dev/null and b/tests/projects/objc/macapp_external_dylib/ext/libextfoo.dylib differ diff --git a/xmake/plugins/show/info/depgraph.lua b/xmake/plugins/show/info/depgraph.lua index c2a4db1ea..55a2d7360 100644 --- a/xmake/plugins/show/info/depgraph.lua +++ b/xmake/plugins/show/info/depgraph.lua @@ -26,7 +26,7 @@ import("core.project.project") import("private.detect.check_targetname") function _collect_target_entry(target) - local deps = target:get("deps") or {} + local deps = table.wrap(target:get("deps")) return { name = target:name(), -- cgit v1.3.1