diff options
| author | ruki <[email protected]> | 2025-12-15 16:48:57 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-12-15 16:48:57 +0800 |
| commit | bab1a618ff5ef169f93d561eb91e42da3fe722ec (patch) | |
| tree | ea2b1df9e3c38ccf3f9ab6281054a6b3706ccd1f /xmake/modules | |
| parent | e58fd4cd9145d5a060a00c513cbe76a1011c013f (diff) | |
| parent | 5ddfccee2173989269704dfc463c948b8bd6653e (diff) | |
Merge pull request #7135 from xmake-io/session
Improve `xrepo env` to add session id
Diffstat (limited to 'xmake/modules')
| -rw-r--r-- | xmake/modules/private/xrepo/action/env.lua | 3 |
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) |
