summaryrefslogtreecommitdiff
path: root/xmake/core/base/task.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2026-08-05 22:06:11 +0800
committerGitHub <[email protected]>2026-08-05 22:06:11 +0800
commit53c06b72cc8b1521aae266543aee634c917a030f (patch)
tree4f3560aaaca4f2099cdc854bb83f0466f1905b14 /xmake/core/base/task.lua
parent2c1dd455654e0811305183510d0c40adb2d70488 (diff)
parent59dd47f6429a1162b9cdd242a9dfcfecdfedb1db (diff)
Merge pull request #7689 from xmake-io/plugin
Rewrite plugin manager for xmake-repo
Diffstat (limited to 'xmake/core/base/task.lua')
-rw-r--r--xmake/core/base/task.lua12
1 files changed, 9 insertions, 3 deletions
diff --git a/xmake/core/base/task.lua b/xmake/core/base/task.lua
index a51b1dbb5..d6f581cf9 100644
--- a/xmake/core/base/task.lua
+++ b/xmake/core/base/task.lua
@@ -81,9 +81,15 @@ end
-- the directories of tasks
function task._directories()
- return {path.join(global.directory(), "plugins"),
- path.join(os.programdir(), "plugins"),
- path.join(os.programdir(), "actions")}
+ local dirs = {
+ path.join(global.directory(), "plugins"),
+ path.join(os.programdir(), "plugins"),
+ path.join(os.programdir(), "actions")}
+ local plugindirs = os.getenv("XMAKE_PLUGIN_DIRS")
+ if plugindirs then
+ table.insert(dirs, 1, plugindirs)
+ end
+ return dirs
end
-- translate menu