You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a vanity import under your own domain name, marwan.io/mycoolpackage
Have the vanity import return a meta to an athens server (localhost since we don't have athens up yet) <meta name="go-import" content="marwan.io/mycoolpackage mod http://localhost:3000">
Run GOPROXY=http://localhost:3000 go get marwan.io/mycoolpackage
Proxy will internally call go mod download on marwan.io/mycoolpackage, which will then redirect go mod download to use a mod server, which is the Proxy itself and so we potentially end up in an infinite loop.
Whether we redirect to CDN or not matters, but that depends on the type of storage and whether it's Proxy/Registry.
The text was updated successfully, but these errors were encountered:
@marwan-at-work good point (and sorry for the delay). I see what you mean now. What do you think about recording each cache miss that we see and cancelling a go mod download call if we see the same cache miss within duration D?
I think this relies on #760 being built, but assuming it is, I can't think of any other reason that there would be multiple cache misses within a small duration for the same module@version
marwan.io/mycoolpackage
<meta name="go-import" content="marwan.io/mycoolpackage mod http://localhost:3000">
GOPROXY=http://localhost:3000 go get marwan.io/mycoolpackage
go mod download
onmarwan.io/mycoolpackage
, which will then redirectgo mod download
to use a mod server, which is the Proxy itself and so we potentially end up in an infinite loop.Whether we redirect to CDN or not matters, but that depends on the type of storage and whether it's Proxy/Registry.
The text was updated successfully, but these errors were encountered: