From e8c58564e87e198cd641249b062e3f3368a332cf Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 18 May 2025 21:53:15 +0800 Subject: fix namespace/packages #6465 --- xmake/core/project/project.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 697b64c7f..5a069f644 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -1092,7 +1092,7 @@ function project.requires_str() local ns_requires_str, ns_requires_extra = project.get(namespace .. "::requires"), project.get(namespace .. "::__extra_requires") if ns_requires_str then requires_str = table.wrap(requires_str) - table.insert(requires_str, ns_requires_str) + table.join2(requires_str, ns_requires_str) end if ns_requires_extra then requires_extra = table.wrap(requires_extra) @@ -1110,7 +1110,7 @@ function project.requires_str() local ns_requireconfs_str, ns_requireconfs_extra = project.get(namespace .. "::requireconfs"), project.get(namespace .. "::__extra_requireconfs") if ns_requireconfs_str then requireconfs_str = table.wrap(requireconfs_str) - table.insert(requireconfs_str, ns_requireconfs_str) + table.join2(requireconfs_str, ns_requireconfs_str) end if ns_requireconfs_extra then requireconfs_extra = table.wrap(requireconfs_extra) -- cgit v1.3.1