]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.cmdgo] cmd/go: sort roots when joining multiple main module roots
authorMichael Matloob <matloob@golang.org>
Wed, 28 Jul 2021 16:32:08 +0000 (12:32 -0400)
committerMichael Matloob <matloob@golang.org>
Wed, 28 Jul 2021 18:15:59 +0000 (18:15 +0000)
commit176baafd5b6d968fc0df25b344ffe826e47e6879
treeb14f775266b73ae2c0fb7005701ca0631a5f33d1
parent288a83dcffef18514e8c01f0ca2053c6be185305
[dev.cmdgo] cmd/go: sort roots when joining multiple main module roots

When concatenating multiple main modules' roots we need to resort
the list of main module roots. This avoids a panic from unsorted main
module roots. This will get better when we have structured module
roots.

Change-Id: I68fed47b0f3b131ed3dadf45db3c442286a0ced0
Reviewed-on: https://go-review.googlesource.com/c/go/+/338111
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/internal/modload/buildlist.go
src/cmd/go/testdata/script/work.txt