From a79cf74f920c088528d66a67a59b3d8eaa1d4f7a Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 14 Aug 2026 23:28:20 +0800 Subject: autofetch addons --- xmake/modules/private/action/require/impl/package.lua | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xmake/modules/private/action/require/impl/package.lua') diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index 65d5f4153..1105384c8 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -1702,6 +1702,9 @@ function get_configs_str(package) end if requireinfo.kind then table.insert(configs, requireinfo.kind) + elseif package:is_addon() then + -- @note the kind is only set for the dependencies, e.g. add_deps("foo", {kind = "addon"}) + table.insert(configs, "addon") end local ignored_configs_for_buildhash = hashset.from(requireinfo.ignored_configs_for_buildhash or {}) local configs_overrided = requireinfo.configs_overrided or {} -- cgit v1.3.1