summaryrefslogtreecommitdiff
path: root/xmake/actions/require/fetch.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-11 23:38:35 +0800
committerruki <[email protected]>2020-11-11 23:38:35 +0800
commit1c0b961dc0c2fd50be0c5d2676d362a5d38b0cf2 (patch)
treeb4deb1020e1665c9ebf1328f4ce30d3abb56a883 /xmake/actions/require/fetch.lua
parentb492db92027dfdbb073f430d04e929ab826116fb (diff)
improve xrepo/fetch
Diffstat (limited to 'xmake/actions/require/fetch.lua')
-rw-r--r--xmake/actions/require/fetch.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/fetch.lua b/xmake/actions/require/fetch.lua
index 657d53fa7..d76228f0b 100644
--- a/xmake/actions/require/fetch.lua
+++ b/xmake/actions/require/fetch.lua
@@ -49,7 +49,7 @@ function main(requires_raw)
local fetchinfos = {}
local nodeps = not (fetchmodes and fetchmodes:has("deps"))
for _, instance in irpairs(package.load_packages(requires, {requires_extra = requires_extra, nodeps = nodeps})) do
- local fetchinfo = instance:fetch()
+ local fetchinfo = instance:fetch({external = (fetchmodes and fetchmodes:has("external") or false)})
if fetchinfo then
table.insert(fetchinfos, fetchinfo)
end