From a79cf74f920c088528d66a67a59b3d8eaa1d4f7a Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 14 Aug 2026 23:28:20 +0800 Subject: autofetch addons --- xmake/core/base/task.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'xmake/core/base/task.lua') diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua index a901490eb..2cd1fa58a 100644 --- a/xmake/core/base/task.lua +++ b/xmake/core/base/task.lua @@ -426,6 +426,12 @@ function task._is_conflicting(taskname, taskfile, filepath) return true end +-- clear the loaded tasks, e.g. some addons may be installed just now +function task.clear() + task._TASKS = nil + task._DIRECTORIES = nil +end + -- get all registered tasks -- -- @return the tasks table {name = task, ...} -- cgit v1.3.1