Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d67e41 commit 30b30d6Copy full SHA for 30b30d6
2 files changed
go/extractor/registries/BUILD.bazel
go/extractor/registries/registryproxy.go
@@ -8,6 +8,8 @@ import (
8
"os"
9
"os/exec"
10
"strings"
11
+
12
+ "github.com/github/codeql-go/extractor/diagnostics"
13
)
14
15
const PROXY_HOST = "CODEQL_PROXY_HOST"
@@ -132,6 +134,18 @@ func getEnvVars() []string {
132
134
}
133
135
136
137
+ // Emit a diagnostic to make it easy for users to see that private registry
138
+ // configurations were picked up by the Go analysis.
139
+ if len(activeConfigs) > 0 {
140
+ prettyConfigs := []string{}
141
+ for i := range activeConfigs {
142
+ prettyConfigs = append(prettyConfigs, activeConfigs[i].Pretty())
143
+ }
144
145
+ diagnostics.EmitPrivateRegistryUsed(diagnostics.DefaultWriter, prettyConfigs)
146
147
148
+ // Assemble environment variables for Go.
149
goprivate := []string{}
150
151
if len(goproxy_servers) > 0 {
0 commit comments