mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Append * to git_source URL if not present
Since `GOPRIVATE` / `GONOPROXY` expect a glob pattern
This commit is contained in:
@@ -103,7 +103,11 @@ func getEnvVars() []string {
|
||||
goproxy_servers = append(goproxy_servers, cfg.URL)
|
||||
slog.Info("Found GOPROXY server", slog.String("url", cfg.URL))
|
||||
} else if cfg.Type == GIT_SOURCE {
|
||||
git_sources = append(git_sources, cfg.URL)
|
||||
if strings.HasSuffix(cfg.URL, "*") {
|
||||
git_sources = append(git_sources, cfg.URL)
|
||||
} else {
|
||||
git_sources = append(git_sources, cfg.URL+"*")
|
||||
}
|
||||
slog.Info("Found Git source", slog.String("url", cfg.URL))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user