From 44c72957d6ea071bf3bef7460c88319b5c283b8b Mon Sep 17 00:00:00 2001 From: "Bryan C. Mills" Date: Tue, 9 Oct 2018 17:14:34 -0400 Subject: [PATCH] cmd/go/internal/mvs: document that BuildList is sorted Updates #28102 Change-Id: Iee1ff64c7720108d6d26bfbff60ea51877093960 Reviewed-on: https://go-review.googlesource.com/c/140862 Run-TryBot: Bryan C. Mills TryBot-Result: Gobot Gobot Reviewed-by: Russ Cox --- src/cmd/go/internal/mvs/mvs.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cmd/go/internal/mvs/mvs.go b/src/cmd/go/internal/mvs/mvs.go index 8ec9162dab..aa109693f3 100644 --- a/src/cmd/go/internal/mvs/mvs.go +++ b/src/cmd/go/internal/mvs/mvs.go @@ -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) } -- 2.50.0