gomods / gomods/athens

[Spike] - See if vanity imports puts us in an infinite loop

Open
#451 4 comments 2 reactions 0 assignees View on GitHub
proxy testing
Dominant language
Go
Stars
4.8k
Forks
542
Avg merge
7d 21h
Merged PRs (30d)
2

Description

1. Create a vanity import under your own domain name, `marwan.io/mycoolpackage`
2. Have the vanity import return a meta to an athens server (localhost since we don't have athens up yet) ``
3. Run `GOPROXY=http://localhost:3000 go get marwan.io/mycoolpackage`
4. 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.