diff options
| author | ruki <[email protected]> | 2022-11-29 23:23:01 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-11-29 23:23:01 +0800 |
| commit | 50ae995612f0985e27001d61aef0717fd1d5d541 (patch) | |
| tree | 9bcadc70d4826aae0d4bc616d40432a01dad8b35 /xmake/core/project/project.lua | |
| parent | b8ec603576e2d856384d12afdaeda941512be657 (diff) | |
improve package info #3106
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index da1966e8c..b7fee40eb 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -487,18 +487,18 @@ function project._load_requires() -- get the package name local packagename = requirestr:split("%s")[1] - -- get alias + -- get alias and requireconfs local alias = nil - local extrainfo = requires_extra[requirestr] - if extrainfo then - alias = extrainfo.alias + local requireconfs = requires_extra[requirestr] + if requireconfs then + alias = requireconfs.alias end - -- load it from cache first (@note will discard scripts in extrainfo) + -- load it from cache first local name = alias or packagename local instance = project_package.load(name) if not instance then - local info = {__requirestr = requirestr, __extrainfo = extrainfo} + local info = {__requirestr = requirestr, __requireconfs = requireconfs} instance = project_package.load_withinfo(name, info) end |
