Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/code: implement module proxy protocol
This change adds an initial version of a Go module server that implements the module proxy protocol, as described at https://golang.org/cmd/go/#hdr-Module_proxy_protocol. This enables more efficient serving of Go modules, especially in cases where only the list, .info and .mod endpoints are requested (not .zip). That happens often: whenever the module isn't actually used in a build, rather it just happens to be in the module requirement graph. The module server isn't fully featured and has some known limitations, but it's enough to cover my current needs. It serves all current module versions at dmitri.shuralyov.com/... with identical checksums as the canonical go mod download algorithm. Its feature set may get expanded as my needs change.
- Loading branch information
Showing
8 changed files
with
729 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.