summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-19 22:54:45 +0800
committerruki <[email protected]>2020-11-19 22:54:45 +0800
commit9cb43b97a9eb028c2d620ea82c196fdd3976316f (patch)
treea041a145e712165462587ea78db0b10ea89f6241
parent0ee50612f988a311bb579f71c93b0677880081a0 (diff)
fix require/info
-rw-r--r--xmake/actions/require/info.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/actions/require/info.lua b/xmake/actions/require/info.lua
index a9ad796ef..23ba5edfc 100644
--- a/xmake/actions/require/info.lua
+++ b/xmake/actions/require/info.lua
@@ -160,6 +160,9 @@ function main(requires_raw)
local fetchinfo = instance:fetch()
if fetchinfo then
for name, info in pairs(fetchinfo) do
+ if type(info) ~= "table" then
+ info = tostring(info)
+ end
cprint(" -> ${magenta}%s${clear}: %s", name, table.concat(table.wrap(info), " "))
end
end