diff options
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 9 |
1 files changed, 5 insertions, 4 deletions
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/<name>/<version>/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 |
