[Bug] HTTP(S)_PROXY
env vars modification by Invoke-Git
leak to current session
#5435
Labels
HTTP(S)_PROXY
env vars modification by Invoke-Git
leak to current session
#5435
Bug Report
HTTP(S)_PROXY
env vars are updated to apply proxy config for git during the invocation ofInvoke-Git
. Ideally, the change of these env vars should not remain in the current session. The implementation ofInvoke-Git
does have a snippet of code to try to reset the env vars.Scoop/lib/core.ps1
Lines 158 to 159 in a20bb4f
Scoop/lib/core.ps1
Lines 173 to 176 in a20bb4f
Unfortunately, it is not parallel execution safe. Parallel execution of
Invoke-Git
such as updating buckets parallelly will read and write the same shared env var and lead to a data race, making it unable to revert the env var modification.Current Behavior
develop branch
Expected Behavior
no env vars modification leak
Additional context/output
Possible Solution
implement parallel execution safe for
Invoke-Git
.System details
Windows version: [e.g. 7, 8, 10, 11]
OS architecture: [e.g. 32bit, 64bit, arm64]
PowerShell version: [output of
"$($PSVersionTable.PSVersion)"
]Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration
//# Your configuration here
The text was updated successfully, but these errors were encountered: