]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/mvs: document that BuildList is sorted
authorBryan C. Mills <bcmills@google.com>
Tue, 9 Oct 2018 21:14:34 +0000 (17:14 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 26 Oct 2018 19:50:31 +0000 (19:50 +0000)
Updates #28102

Change-Id: Iee1ff64c7720108d6d26bfbff60ea51877093960
Reviewed-on: https://go-review.googlesource.com/c/140862
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/go/internal/mvs/mvs.go

index 8ec9162dabcdc267d5ecb18c21bc5be36fd7f4e8..aa109693f307e5b30e6deae93c81f1e238bc818e 100644 (file)
@@ -68,6 +68,7 @@ func (e *MissingModuleError) Error() string {
 }
 
 // BuildList returns the build list for the target module.
+// The first element is the target itself, with the remainder of the list sorted by path.
 func BuildList(target module.Version, reqs Reqs) ([]module.Version, error) {
        return buildList(target, reqs, nil)
 }