support goproxy for list/download command (#1304)

This commit is contained in:
Yi Tang
2019-07-16 02:07:24 +08:00
committed by Marwan Sulaiman
parent 8e8e886f84
commit 7de77889ad
9 changed files with 36 additions and 17 deletions
+3
View File
@@ -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,