diff options
| author | ruki <[email protected]> | 2026-08-15 14:46:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-08-15 14:46:25 +0800 |
| commit | 62bae6f061c8577aae7dff8c1f6c47a5e705f3bb (patch) | |
| tree | 0543fce3beaa9bb452d5d179086afc3ac4aa590e | |
| parent | 57be1de09f2a890e9fff49560ce2665a38e53abb (diff) | |
improve tips
| -rw-r--r-- | xmake/core/package/addon.lua | 2 | ||||
| -rw-r--r-- | xmake/core/project/rule.lua | 2 | ||||
| -rw-r--r-- | xmake/modules/private/xrepo/quick_search/cache.lua | 2 | ||||
| -rw-r--r-- | xmake/plugins/plugin/main.lua | 2 |
4 files changed, 1 insertions, 7 deletions
diff --git a/xmake/core/package/addon.lua b/xmake/core/package/addon.lua index 8787ab73a..43cb81edf 100644 --- a/xmake/core/package/addon.lua +++ b/xmake/core/package/addon.lua @@ -573,8 +573,6 @@ end -- function addon.payloadinfos(kind) local payloadinfos = {} - -- @note we need to iterate them in a deterministic order, the load order matters, - -- e.g. the first plugin wins if two addons provide the same task name for name, addoninfo in table.orderpairs(addon.addons()) do if table.contains(addoninfo.payloads or {}, kind) then table.insert(payloadinfos, { diff --git a/xmake/core/project/rule.lua b/xmake/core/project/rule.lua index c205f91b4..5b3b3aa78 100644 --- a/xmake/core/project/rule.lua +++ b/xmake/core/project/rule.lua @@ -515,8 +515,6 @@ function rule._load_ondemand(name) -- the rules of an addon are always referenced with its name, -- e.g. add_rules("@addon/esp32/flash"), so we only load this addon - -- - -- @note we limit the recursion level here too, @see rule._rulefile() local maxrecursion = 4 local groupkey, files, opt if name:startswith("@addon/") then diff --git a/xmake/modules/private/xrepo/quick_search/cache.lua b/xmake/modules/private/xrepo/quick_search/cache.lua index a6d849341..feba8cda9 100644 --- a/xmake/modules/private/xrepo/quick_search/cache.lua +++ b/xmake/modules/private/xrepo/quick_search/cache.lua @@ -105,8 +105,6 @@ function find(name, opt) _init() opt = opt or {} local list_result = {} - -- @note we need to iterate them in a deterministic order, the caller may just take - -- the results as they come, e.g. the completion candidates for cachekey, packagedata in table.orderpairs(cache:data()) do -- we only search the packages with the given kind, e.g. nil (package), "addon" local packagename = packagedata.name or cachekey diff --git a/xmake/plugins/plugin/main.lua b/xmake/plugins/plugin/main.lua index dbb23a139..ce1ac3e4f 100644 --- a/xmake/plugins/plugin/main.lua +++ b/xmake/plugins/plugin/main.lua @@ -257,7 +257,7 @@ function _clear() end function main() - wprint("`xmake plugin` is deprecated, please use `xmake addon` instead!") + cprint("${bright color.warning}${text.warning}: ${color.warning}`xmake plugin` is deprecated, please use `xmake addon` instead!") if option.get("install") then _install() elseif option.get("remove") then |
