Skip to content

Commit 285b19a

Browse files
authored
Merge pull request #6469 from xmake-io/namespace
fix namespace/packages #6465
2 parents f5b8196 + e8c5856 commit 285b19a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xmake/core/project/project.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ function project.requires_str()
10921092
local ns_requires_str, ns_requires_extra = project.get(namespace .. "::requires"), project.get(namespace .. "::__extra_requires")
10931093
if ns_requires_str then
10941094
requires_str = table.wrap(requires_str)
1095-
table.insert(requires_str, ns_requires_str)
1095+
table.join2(requires_str, ns_requires_str)
10961096
end
10971097
if ns_requires_extra then
10981098
requires_extra = table.wrap(requires_extra)
@@ -1110,7 +1110,7 @@ function project.requires_str()
11101110
local ns_requireconfs_str, ns_requireconfs_extra = project.get(namespace .. "::requireconfs"), project.get(namespace .. "::__extra_requireconfs")
11111111
if ns_requireconfs_str then
11121112
requireconfs_str = table.wrap(requireconfs_str)
1113-
table.insert(requireconfs_str, ns_requireconfs_str)
1113+
table.join2(requireconfs_str, ns_requireconfs_str)
11141114
end
11151115
if ns_requireconfs_extra then
11161116
requireconfs_extra = table.wrap(requireconfs_extra)

0 commit comments

Comments
 (0)