Skip to content

gomodfs: support a list of module proxies, trying each in order - #28

Merged
bradfitz merged 1 commit into
mainfrom
bradfitz/proxy_fallback
Sep 9, 2026
Merged

bradfitz merged 1 commit into
mainfrom
bradfitz/proxy_fallback

Conversation

@bradfitz

@bradfitz bradfitz commented Sep 9, 2026

Copy link
Copy Markdown
Member

Add FS.ModuleProxyURLs, an ordered list of Go module proxy URLs; each
download tries each proxy in order, moving on to the next after any
error. A module version's zip/info/mod set always comes from a single
proxy. The existing singular ModuleProxyURL remains and is used when
the list is empty.

This lets corp CI hosts try proxy.golang.org first and fall back to
tsgoproxy (corp's internal module proxy, which additionally serves
private modules) only when the public proxy can't serve a module, so
the internal proxy isn't load-bearing for public modules.

Updates tailscale/corp#39167

Add FS.ModuleProxyURLs, an ordered list of Go module proxy URLs; each
download tries each proxy in order, moving on to the next after any
error. A module version's zip/info/mod set always comes from a single
proxy. The existing singular ModuleProxyURL remains and is used when
the list is empty.

This lets corp CI hosts try proxy.golang.org first and fall back to
tsgoproxy (corp's internal module proxy, which additionally serves
private modules) only when the public proxy can't serve a module, so
the internal proxy isn't load-bearing for public modules.

Updates tailscale/corp#39167

Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
@bradfitz
bradfitz requested review from a team and tomhjp September 9, 2026 01:14
@bradfitz
bradfitz merged commit 0f8d53a into main Sep 9, 2026
7 checks passed
@bradfitz
bradfitz deleted the bradfitz/proxy_fallback branch September 9, 2026 18:59
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.

2 participants