镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

setup-go: fall back to the origin and retry go mod download - #145

Open
ecordell wants to merge 1 commit into
mainfrom
setup-go-proxy-retry
Open

ecordell wants to merge 1 commit into
mainfrom
setup-go-proxy-retry

Conversation

@ecordell

Copy link
Copy Markdown
Contributor

A reset stream from proxy.golang.org failed go mod download and took a whole merge queue group with it (authzed/internal run 38567138769).

  • Exports GOPROXY=https://proxy.golang.org|direct for the rest of the job, unless the caller already sets GOPROXY. With a pipe, the go command falls back to the origin on any proxy error. With the default comma, it falls back only on a 404 or 410.
  • Retries go mod download up to download-attempts times (default 3), with a short backoff, before it fails.
  • The magefiles download retries too, and still never fails the setup, as before.

A reset stream from proxy.golang.org failed go mod download, and with it
the job and any merge queue group it was in. GOPROXY now falls back to the
origin on any proxy error, unless the caller sets GOPROXY, and the setup
downloads retry before they fail.
@ecordell
ecordell marked this pull request as ready for review October 14, 2026 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant