Skip to content
github-actions[bot] edited this page Aug 4, 2026 · 2 revisions

Go (modules)

Part of the ecosystems matrix. Go is special: a module path is its repository.

Files

go.mod (declared modules) + go.sum (the full set with versions).

Graph — flat

Go's transitive parent edges can't be reconstructed offline (that needs go mod graph). postmortem builds a flat graph and emits a diagnostic saying so, plus surfaces replace directives — so a flat result is never read as "clean".

Online resolution — no registry call

The module path already points at the repo, so it's parsed directly: github.com/gin-gonic/gingin-gonic/gin. Works for GitHub, GitLab, and Codeberg module paths.

Vanity import rewrites

Well-known custom domains are rewritten to their GitHub mirror (see Ecosystems & Hosts → Mirror rewrites):

Path Repo
golang.org/x/<r> golang/<r>
k8s.io/<r> kubernetes/<r>
sigs.k8s.io/<r> kubernetes-sigs/<r>
gopkg.in/<pkg>.vN go-<pkg>/<pkg>
gopkg.in/<user>/<pkg>.vN <user>/<pkg>

Gotcha

Irregular vanity paths (e.g. google.golang.org/grpc) have no fixed mapping and resolve to no repository (unchecked) — deliberately not guessed.

Clone this wiki locally