diff options
| author | Eddie Santos <[email protected]> | 2025-06-17 08:24:07 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-17 15:24:07 +0000 |
| commit | c3971754bf4bd5877d7a57c523b981c09d4fa35d (patch) | |
| tree | bda44458964d2c141977e321ed39cfd2dba99a8d /packages/cli/src/utils | |
| parent | bc3fa71234638abd623479d81b52302c21630e87 (diff) | |
Auto-update notifications (#1110)
Diffstat (limited to 'packages/cli/src/utils')
| -rw-r--r-- | packages/cli/src/utils/sandbox.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/cli/src/utils/sandbox.ts b/packages/cli/src/utils/sandbox.ts index 08714bd8..36dec7f0 100644 --- a/packages/cli/src/utils/sandbox.ts +++ b/packages/cli/src/utils/sandbox.ts @@ -659,7 +659,10 @@ export async function start_sandbox(sandbox: string) { // Determine if the current user's UID/GID should be passed to the sandbox. // See shouldUseCurrentUserInSandbox for more details. let userFlag = ''; - if (await shouldUseCurrentUserInSandbox()) { + if (process.env.GEMINI_CLI_INTEGRATION_TEST === 'true') { + args.push('--user', 'root'); + userFlag = '--user root'; + } else if (await shouldUseCurrentUserInSandbox()) { const uid = execSync('id -u').toString().trim(); const gid = execSync('id -g').toString().trim(); args.push('--user', `${uid}:${gid}`); |
