]> Cypherpunks repositories - gostls13.git/commit
cmd/go: fix spurious edges in mod -graph output
authorRuss Cox <rsc@golang.org>
Tue, 24 Jul 2018 19:05:11 +0000 (15:05 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 28 Jul 2018 01:15:00 +0000 (01:15 +0000)
commitf37ca81c84ec21cb50d32e2161c6fc4875195acf
tree958a1042169b157cbb65daa7fbd034fae44a82b1
parent0cb6b55f43dabdfac8c5afab6d00c9cd65eaadb4
cmd/go: fix spurious edges in mod -graph output

The mod -graph output was showing every dependency
as an edge from the main module, instead of showing only
the things that are listed in go.mod.

Fixes #26489.

Change-Id: I248fedb1fc9225e2a7a9ddc2f4a84520b3a96138
Reviewed-on: https://go-review.googlesource.com/125657
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modcmd/mod.go
src/cmd/go/internal/modload/build.go
src/cmd/go/internal/modload/init.go
src/cmd/go/testdata/script/mod_graph.txt [new file with mode: 0644]