We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e805d1e commit 9cfa451Copy full SHA for 9cfa451
go/extractor/util/registryproxy.go
@@ -133,7 +133,8 @@ func ApplyProxyEnvVars(cmd *exec.Cmd) {
133
}
134
135
// If the proxy is configured, `proxy_vars` will be not `nil`. We append those
136
- // variables Preserve environment variables
+ // variables to the existing environment to preserve those environment variables.
137
+ // If `cmd.Env` is not changed, then the existing environment is also preserved.
138
if proxy_vars != nil {
139
cmd.Env = append(os.Environ(), proxy_vars...)
140
0 commit comments