Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Rewrite ¶
func Rewrite(mod coordinates.Module, b repository.Blob) (repository.Blob, error)
Rewrite the zip we downloaded from the upstream VCS into a zip file in the format required by the go/cmd tooling. Fundamentally the zip file the Go tooling requires re-namespacing the content under the directory path of the module.
Additionally, the go/cmd does the following - limits the size of upstream .zip file to 500 MiB - limits the size of upstream LICENSE to 16 MiB - limits the size of upstream go.mod file to 16MiB - - removes submodules -
The only complete "documentation" for the format of the new zip archive is in the go tool source code: go/src/cmd/go/internal/modfetch/coderepo.go
Types ¶
type Client ¶
func NewHTTPClient ¶
func NewHTTPClient(options HTTPOptions) Client
type HTTPOptions ¶
Click to show internal directories.
Click to hide internal directories.