diff options
| author | ruki <[email protected]> | 2025-01-08 00:59:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-01-08 00:59:28 +0800 |
| commit | 4ad00835a9070c32b6ce17248e5702ef0eae5a37 (patch) | |
| tree | 2102b2025ba2e7246f6940925a38c1ecf74559be /xmake/modules/private/action/require/impl/package.lua | |
| parent | 14fff0b1c97238ec498c1a237862d4fe943b8d6c (diff) | |
fix package error
Diffstat (limited to 'xmake/modules/private/action/require/impl/package.lua')
| -rw-r--r-- | xmake/modules/private/action/require/impl/package.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/modules/private/action/require/impl/package.lua b/xmake/modules/private/action/require/impl/package.lua index 30c571592..840814040 100644 --- a/xmake/modules/private/action/require/impl/package.lua +++ b/xmake/modules/private/action/require/impl/package.lua @@ -961,6 +961,12 @@ function _load_package(packagename, requireinfo, opt) local package if os.isfile(os.projectfile()) then package = _load_package_from_project(packagename) + if package and package:namespace() then + packagename = package:namespace() .. "::" .. packagename + if displayname then + displayname = package:namespace() .. "::" .. displayname + end + end end -- load package from repositories |
