Skip to content

Commit 9cfa451

Browse files
committed
Go: Fix/improve comment about environment variable preservation
1 parent e805d1e commit 9cfa451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

go/extractor/util/registryproxy.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ func ApplyProxyEnvVars(cmd *exec.Cmd) {
133133
}
134134

135135
// If the proxy is configured, `proxy_vars` will be not `nil`. We append those
136-
// variables Preserve environment variables
136+
// variables to the existing environment to preserve those environment variables.
137+
// If `cmd.Env` is not changed, then the existing environment is also preserved.
137138
if proxy_vars != nil {
138139
cmd.Env = append(os.Environ(), proxy_vars...)
139140
}

0 commit comments

Comments
 (0)