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.
ApplyProxyEnvVars
1 parent 0f78e11 commit e210be7Copy full SHA for e210be7
go/extractor/util/registryproxy.go
@@ -91,6 +91,9 @@ func ApplyProxyEnvVars(cmd *exec.Cmd) {
91
92
checkEnvVars()
93
94
+ // Preserve environment variables
95
+ cmd.Env = os.Environ()
96
+
97
if proxy_address != "" {
98
cmd.Env = append(cmd.Env, fmt.Sprintf("HTTP_PROXY=%s", proxy_address))
99
cmd.Env = append(cmd.Env, fmt.Sprintf("HTTPS_PROXY=%s", proxy_address))
0 commit comments