Skip to content

enhance(packages): add global Go module proxy - #39246

Open
lunny wants to merge 1 commit into
go-gitea:mainfrom
lunny:lunny/global-goproxy
Open

enhance(packages): add global Go module proxy#39246
lunny wants to merge 1 commit into
go-gitea:mainfrom
lunny:lunny/global-goproxy

Conversation

@lunny

@lunny lunny commented Sep 4, 2026

Copy link
Copy Markdown
Member

Add a global Go module proxy at /api/packages/go.

It serves modules directly from Gitea repositories by resolving semantic
version tags to Go module versions, and transparently proxies non-local
modules to an upstream GOPROXY with immutable-file caching. Private
repositories are protected by Gitea's existing PAT/OAuth2 authentication.

New config: [packages] GO_PROXY_URL (default https://proxy.golang.org).

Add a global Go module proxy at /api/packages/go. It serves Gitea
repositories as Go modules, proxies other modules to an upstream
GOPROXY, and caches immutable module files. Private repositories use
Gitea's existing PAT/OAuth2 authentication.

Assisted-by: Codet:unknown
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Sep 4, 2026
@github-actions github-actions Bot added docs-update-needed The document needs to be updated synchronously topic/packages type/enhancement An improvement of existing functionality labels Sep 4, 2026
@silverwind

silverwind commented Sep 5, 2026

Copy link
Copy Markdown
Member
  1. What does "global" refer to. I'm confused by that word in this context, is there a "local" proxy too? A user reading this would certainly be confused.
  2. Why not follow GOPROXY default value of https://proxy.golang.org,direct for the upstream? Any reason to omit direct?
  3. This should probably support the full syntax that GOPROXY supports including | separators.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-update-needed The document needs to be updated synchronously lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. topic/packages type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants