mirror of
https://github.com/gomods/athens
synced 2026-02-03 12:10:32 +00:00
support goproxy for list/download command (#1304)
This commit is contained in:
@@ -71,6 +71,7 @@ func TestEnvOverrides(t *testing.T) {
|
||||
ProtocolWorkers: 10,
|
||||
LogLevel: "info",
|
||||
GoBinary: "go11",
|
||||
GoProxy: "direct",
|
||||
CloudRuntime: "gcp",
|
||||
TimeoutConf: TimeoutConf{
|
||||
Timeout: 30,
|
||||
@@ -249,6 +250,7 @@ func TestParseExampleConfig(t *testing.T) {
|
||||
GoEnv: "development",
|
||||
LogLevel: "debug",
|
||||
GoBinary: "go",
|
||||
GoProxy: "direct",
|
||||
GoGetWorkers: 10,
|
||||
ProtocolWorkers: 30,
|
||||
CloudRuntime: "none",
|
||||
@@ -291,6 +293,7 @@ func getEnvMap(config *Config) map[string]string {
|
||||
envVars := map[string]string{
|
||||
"GO_ENV": config.GoEnv,
|
||||
"GO_BINARY_PATH": config.GoBinary,
|
||||
"GOPROXY": config.GoProxy,
|
||||
"ATHENS_GOGET_WORKERS": strconv.Itoa(config.GoGetWorkers),
|
||||
"ATHENS_PROTOCOL_WORKERS": strconv.Itoa(config.ProtocolWorkers),
|
||||
"ATHENS_LOG_LEVEL": config.LogLevel,
|
||||
|
||||
Reference in New Issue
Block a user