proposal: x/mod: create proxy package #73232
Labels
LibraryProposal
Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool
Proposal
Milestone
Proposal Details
Create a golang.org/x/mod/proxy package similar in goal to the golang.org/x/mod/sumdb package.
Why? To make it easy to setup, test, and develop your own https://modproxy.example.com/ Go module proxy for
<meta name="go-import" content="example.com/awesome mod https://modproxy.example.com">
custom module proxies and/orGOPROXY=https://goproxy.example.com
caching module proxies. I appreciate the https://pkg.go.dev/golang.org/x/mod/sumdb#Client and https://pkg.go.dev/golang.org/x/mod/sumdb#Server structs so that I can just plug-and-play sometype MyServerOps struct {}
,sumdb.NewServer(&MyServerOps{})
and thenhttp.ListenAndServe(blahblah)
and it works for testing. I also like being able to use a client very easily. I would appreciate a similar thing for module proxies.This was mentioned in #31761:
So I think this isn't that far out. I am willing to contribute code to do this.
The text was updated successfully, but these errors were encountered: