summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/action/require/impl/install_packages.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/private/action/require/impl/install_packages.lua b/xmake/modules/private/action/require/impl/install_packages.lua
index ab7556cc4..22738e5f4 100644
--- a/xmake/modules/private/action/require/impl/install_packages.lua
+++ b/xmake/modules/private/action/require/impl/install_packages.lua
@@ -249,7 +249,7 @@ function _install_packages(packages_install, packages_download)
-- @note we need to register the package in time,
-- because other packages may be used, e.g. toolchain/packages
if not instance:parents() then
- register_packages(instance)
+ register_packages({instance})
end
-- mark this group as 'installed' or 'failed'