Skip to content

acc: Unset all env vars in inprocess mode#2822

Merged
shreyas-goenka merged 3 commits intomainfrom
fix-inprocess-env
May 7, 2025
Merged

acc: Unset all env vars in inprocess mode#2822
shreyas-goenka merged 3 commits intomainfrom
fix-inprocess-env

Conversation

@shreyas-goenka
Copy link
Copy Markdown
Contributor

@shreyas-goenka shreyas-goenka commented May 7, 2025

Why

We need to cleanup existing env vars in the parent CLI process in inprocess mode. Just setting new environment variables is not enough. This was noticed in #2720 and is necessarily for it to work since otherwise we end up with conflicting auth.

Tests

Manually, before local tests would fail when non PAT auth was configured in terminal, for example selftest/server fails with when OAuth is configured:

Error: inner token: Post "[UUID]/oauth2/token": Post "[UUID]/oauth2/token": unsupported protocol scheme ""

Now these local tests pass.

@shreyas-goenka shreyas-goenka marked this pull request as ready for review May 7, 2025 08:06
@shreyas-goenka shreyas-goenka enabled auto-merge May 7, 2025 08:21
@shreyas-goenka shreyas-goenka disabled auto-merge May 7, 2025 08:21
@shreyas-goenka shreyas-goenka enabled auto-merge May 7, 2025 08:22
@shreyas-goenka shreyas-goenka added this pull request to the merge queue May 7, 2025
Merged via the queue into main with commit 8b8dfbd May 7, 2025
10 checks passed
@shreyas-goenka shreyas-goenka deleted the fix-inprocess-env branch May 7, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants