influxdata / influxdata/influxdb

Fallback to direct download on any error from proxy.golang.org

Open
#27,607 1 comment 0 reactions 1 assignee Claimed by @gwossum View on GitHub
1.x kind/feature team/edge
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

The default `GOPROXY` setting is `https://proxy.golang.org,direct`. This will fallback to direct download only on 404 (Not Found) and 410 (Gone) errors. If proxy.golang.org is experiencing other types of outages, then the download does not fallback to direct and CI builds will fail, requiring restarting the CI pipeline.

Changing to `GOPROXY=https://proxy.golang.org|direct` will cause go to fallback direct on _any_ error downloading from proxy.golang.org. This will prevent CI issues while https://proxy.golang.org is experiencing outages, without completely abandoning the benefits of proxy.golang.org.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.