summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-15 23:25:55 +0800
committerruki <[email protected]>2025-12-15 23:25:55 +0800
commitf185da7553866891b71ab046b44769833cd6e005 (patch)
tree780f549bd5efde4f09c7a951f460365cb53ed43e
parentb9116ea123e77faec8a4a0cfbfcbb38f2ebc2e66 (diff)
improve xrepo env
-rw-r--r--xmake/modules/private/xrepo/action/env.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/private/xrepo/action/env.lua b/xmake/modules/private/xrepo/action/env.lua
index b318e6031..a45d08b1c 100644
--- a/xmake/modules/private/xrepo/action/env.lua
+++ b/xmake/modules/private/xrepo/action/env.lua
@@ -19,6 +19,7 @@
--
-- imports
+import("core.base.tty")
import("core.base.option")
import("core.base.task")
import("core.base.hashset")
@@ -98,7 +99,7 @@ end
-- enter the working project
function _enter_project()
- local workdir = path.join(os.tmpdir(), "xrepo", "working")
+ local workdir = path.join(os.tmpdir(), "xrepo", "working-" .. tty.session_id())
if not os.isdir(workdir) then
os.mkdir(workdir)
os.cd(workdir)