diff options
| author | Olcan <[email protected]> | 2025-05-20 15:30:49 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-20 15:30:49 -0700 |
| commit | 17e28036faa5e94fb65f52514b6252bc2e915ebc (patch) | |
| tree | e8e34eee72982e898de3fbd95f27e8bb2dfe3cda /packages/cli/src/utils/sandbox.ts | |
| parent | 716f7875a2fe4cec5433f64651a7f50cce58a41e (diff) | |
fix HOME in sandbox on cloudtops (linux) (#454)
Diffstat (limited to 'packages/cli/src/utils/sandbox.ts')
| -rw-r--r-- | packages/cli/src/utils/sandbox.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index aa8d9f2a..971ff615 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -450,6 +450,8 @@ export async function start_sandbox(sandbox: string) { const uid = execSync('id -u').toString().trim(); const gid = execSync('id -g').toString().trim(); args.push('--user', `${uid}:${gid}`); + // when forcing a UID in the sandbox, $HOME can be reset to '/', so we copy $HOME as well + args.push('--env', `HOME=${os.homedir()}`); } // push container image name |
