summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-02-24 22:57:56 +0800
committerruki <[email protected]>2022-02-24 16:00:44 +0800
commit83b50994a3c31b2b65e50a95a00fb7fc5cb22cf7 (patch)
tree7e3be5950fad3314f1f738a25f60e9164356a78b
parent78b85377c2bdea24d266b5a43b3ee802bc9724cb (diff)
fix xrepo
-rw-r--r--xmake/modules/private/xrepo/action/install.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/install.lua b/xmake/modules/private/xrepo/action/install.lua
index 0fc4013d1..34759ca0c 100644
--- a/xmake/modules/private/xrepo/action/install.lua
+++ b/xmake/modules/private/xrepo/action/install.lua
@@ -197,7 +197,12 @@ function _install_packages(packages)
if #rcfiles > 0 then
envs.XMAKE_RCFILES = path.joinenv(rcfiles)
end
- os.vrunv("xmake", config_argv, {envs = envs})
+ if filemode then
+ -- https://github.com/xmake-io/xmake/issues/2084
+ os.execv("xmake", config_argv, {envs = envs})
+ else
+ os.vrunv("xmake", config_argv, {envs = envs})
+ end
-- do install
local require_argv = {"require"}