Skip to content

Commit 18094d8

Browse files
jketemaCopilot
andcommitted
Go: Clarify registry proxy certificate handling
Document the proxy certificate behavior without referring to the previous global Git configuration, and add a change note. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent f2ddc40 commit 18094d8

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

‎go/extractor/registries/registryproxy.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,7 @@ func getEnvVars() []string {
104104
} else {
105105
proxy_cert_file = f.Name()
106106
// `SSL_CERT_FILE` is used by Go itself; `GIT_SSL_CAINFO` is used by the `git`
107-
// processes that `go` spawns to fetch `git_source` modules. Setting it here scopes
108-
// the certificate to our subprocesses instead of modifying the global git configuration.
107+
// processes that `go` spawns to fetch `git_source` modules.
109108
result = append(
110109
result,
111110
fmt.Sprintf("SSL_CERT_FILE=%s", proxy_cert_file),
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
category: fix
3+
---
4+
* The Go extractor no longer modifies the global Git configuration when private `git_source` registries are configured. The registry proxy certificate is now passed to Git through the `GIT_SSL_CAINFO` environment variable instead, which only affects the Git processes spawned by `go`.

0 commit comments

Comments
 (0)