From 8564ea66201d1398cb8ee5b91efc784a379c4a64 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 8 Aug 2026 22:41:30 +0800 Subject: fix plugin bug and add description --- xmake/core/package/package.lua | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'xmake/core/package/package.lua') diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 2b56ee332..9d0cdc49d 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -1216,10 +1216,11 @@ function _instance:_rawenvs() end -- add plugin env for on_test - if self:is_addon() then - -- e.g. ~/.xmake/addons///plugins - envs.XMAKE_PLUGIN_DIRS = path.join(self:installdir(), "plugins") - elseif self:is_plugin() then + -- + -- @note we need not do it for the addon packages, they are registered + -- to the addons registry after installing, and xmake can find their payloads directly + -- + if self:is_plugin() then envs.XMAKE_PLUGIN_DIRS = path.directory(self:installdir()) end self._RAWENVS = envs -- cgit v1.3.1