cmd/go/internal/modcmd: add mod -graph
mod -graph dumps the requirement graph in text form,
for processing by other tools. For example, I wondered
why github.com/moby/buildkit was exploring a very
old version of Kubernetes:
$ vgo mod -graph |
digraph somepath github.com/moby/buildkit \
k8s.io/kubernetes@v0.0.0-20150821172800-a412f6a67e3a
github.com/moby/buildkit
github.com/docker/docker@v0.0.0-20180531152204-71cd53e4a197
github.com/containerd/containerd@v0.0.0-20180226221259-4ac4fd0b6a26
k8s.io/kubernetes@v0.0.0-20180209063429-05944b1d2ca7
k8s.io/heapster@v0.0.0-20160819112202-c2ac40f1adf8
k8s.io/kubernetes@v0.0.0-20160809133706-301be4eeb561
k8s.io/heapster@v0.0.0-20160517121052-9cb18ac0ceb1
k8s.io/kubernetes@v0.0.0-20160513071043-4bb30e009782
k8s.io/heapster@v0.0.0-20160405141354-de510e4bdcde
k8s.io/kubernetes@v0.0.0-20160219000711-644d651c6907
k8s.io/heapster@v0.0.0-20160126150510-0991ac528ea2
k8s.io/kubernetes@v0.0.0-20151104234216-319baeec5ab5
k8s.io/heapster@v0.0.0-20150824215340-0e1b65278181
k8s.io/kubernetes@v0.0.0-20150821172800-a412f6a67e3a
$
Change-Id: I202bfb9828e07e223eafce44f43c251cf24643b3
Reviewed-on: https://go-review.googlesource.com/120197
Reviewed-by: Bryan C. Mills <bcmills@google.com>
This repository holds a prototype of what the go command might look like with integrated support for package versioning.
See research.swtch.com/vgo for documents about the design.
Use go get -u golang.org/x/vgo.
You can also manually git clone the repository to $GOPATH/src/golang.org/x/vgo.
See CONTRIBUTING.md.
This is still a very early prototype. You are likely to run into bugs. Please file bugs in the main Go issue tracker, golang.org/issue, and put the prefix x/vgo: in the issue title.
Thank you.