summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxq114 <[email protected]>2023-05-12 10:53:30 +0800
committerxq114 <[email protected]>2023-05-12 10:53:30 +0800
commitadb3136632bf0874b841c84e06875232758b8371 (patch)
tree1e574af3bc6e4e73dcc1ec68ef240a6b68eee8ad
parent643719b7e52a0a2bf458853d2b0381e416bdf433 (diff)
fix issue with existing working tmpdir
-rw-r--r--xmake/modules/private/xrepo/action/env.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index 0c547a1ed..4a092df54 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -105,6 +105,8 @@ function _enter_project()
os.vrunv("xmake", {"create", "-P", "."})
else
os.cd(workdir)
+ os.rm("*")
+ os.vrunv("xmake", {"create", "-P", "."})
end
project.chdir(workdir)
end