Working with Go
CodeScoring.Save implements Go Module Proxy Protocol with the /go/<project>/<repository>/ prefix. It is compatible with the standard Go toolchain (go mod, go build, go install).
Proxy Repository
Hosted Repository
A hosted repository accepts PUT uploads of modules at URLs like:
Module paths use case encoding according to the Go Module Proxy spec: uppercase letters are replaced with ! + the corresponding lowercase letter, for example Acme -> !acme.
Client Configuration
GOPROXY can contain several URLs separated by commas: GOPROXY="https://save.example.com/go/<project>/go-proxy,direct". The Go toolchain tries each proxy in order; direct means direct access to VCS.
For CI/CD, use a robot account: login = sa$<robot-name>, password = <api-key> in ~/.netrc. For details, see Authentication.
If the repository stores internal modules that are not present in public sumdb, add their patterns to GOPRIVATE.
Repository URL Migration
Use case: migrating a Go proxy from Nexus / Artifactory to CodeScoring.Save.
