diff options
| author | ruki <[email protected]> | 2021-01-29 23:40:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-29 23:40:51 +0800 |
| commit | 7b4bc14f146ea74db69937d40675867f137e8266 (patch) | |
| tree | 536bc19920e607ee1f6e6e2a7023d706c99a1b17 | |
| parent | 408d898221d3746559a3d04ced947aa89a674ac6 (diff) | |
fix xrepo env
| -rw-r--r-- | xmake/actions/require/impl/package.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua index cb9b8436b..281bbaef3 100644 --- a/xmake/actions/require/impl/package.lua +++ b/xmake/actions/require/impl/package.lua @@ -367,6 +367,11 @@ end -- function _merge_requireinfo(requireinfo, requirepath) + -- only for project + if not os.isfile(os.projectfile()) then + return + end + -- find requireconf from the given requirepath local requireconf_result = {} local requireconfs, requireconfs_extra = project.requireconfs_str() |
