summaryrefslogtreecommitdiff
path: root/xmake/actions/require/impl/package.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-05-11 00:30:54 +0800
committerruki <[email protected]>2019-05-10 21:05:28 +0800
commit22ee7732c80f018cf6f2a2943ec36b2f4fe4dadd (patch)
treec2b9ef9cc19f18d0d0fe2517af939cedd8d2dbd7 /xmake/actions/require/impl/package.lua
parent11a61399f708e73df2c47b31cf4fd4d3f16495bc (diff)
add shallow args for require
Diffstat (limited to 'xmake/actions/require/impl/package.lua')
-rw-r--r--xmake/actions/require/impl/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/impl/package.lua b/xmake/actions/require/impl/package.lua
index b43e19280..10d71974f 100644
--- a/xmake/actions/require/impl/package.lua
+++ b/xmake/actions/require/impl/package.lua
@@ -362,7 +362,7 @@ function _load_packages(requires, opt)
if package then
-- load dependent packages and save them first of this package
- if not package._DEPS then
+ if not package._DEPS and not option.get("shallow") then
local deps = package:get("deps")
if deps and opt.nodeps ~= true then
local packagedeps = {}