]> Cypherpunks repositories - gostls13.git/commit
cmd/go: describe dependencies in build list error messages
authorJay Conrod <jayconrod@google.com>
Mon, 8 Apr 2019 20:57:13 +0000 (16:57 -0400)
committerJay Conrod <jayconrod@google.com>
Tue, 16 Apr 2019 18:50:19 +0000 (18:50 +0000)
commitf7c967259254fa90e1f1951f83fb66850ae3809a
tree6a69de78892ad476a71de636f14f6f4b299f3a40
parent6997671d2e69cb3d5ac26b34564d117eed472260
cmd/go: describe dependencies in build list error messages

mvs.BuildList reports errors with a chain of modules to make it
clear why the module where the error occurred was part of the
build. This is a little confusing with "go get -u" since there are
edges in the module graph for requirements and for updates.

With this change, we now print "requires" or "updates to" between
each module version in the chain.

Updates #30661

Change-Id: Ie689500ea86857e715b250b9e0cae0bc6686dc32
Reviewed-on: https://go-review.googlesource.com/c/go/+/171150
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/mvs/mvs.go
src/cmd/go/testdata/script/mod_load_badchain.txt