]> Cypherpunks repositories - gostls13.git/commit
cmd/go: add ImportMap to go list package struct
authorRuss Cox <rsc@golang.org>
Tue, 10 Jul 2018 03:00:35 +0000 (23:00 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 10 Jul 2018 14:59:43 +0000 (14:59 +0000)
commit25c3bb377ac455184cc9870e690df45fe3f6e1ab
tree2e6d293f6885dff38eb6e81dafae338047340f48
parent9ab5154f6ceb0211d8a29005c0f4d4851f0d4e4f
cmd/go: add ImportMap to go list package struct

Also populate Imports for test main with go list -test.

Update comment in internal/load/test.go about
p.Imports, p.Internal.RawImports, and p.Imports
being perfectly aligned. The first two are,
but the third is not, as evidenced by CL 111175.

Since p.Imports is not aligned, don't assume that anymore.

Fixes #25949.

Change-Id: Icbfbc881bc01d1e195a759648fbd1c978ddbc161
Reviewed-on: https://go-review.googlesource.com/122878
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
src/cmd/go/go_test.go
src/cmd/go/internal/list/list.go
src/cmd/go/internal/load/pkg.go
src/cmd/go/internal/load/test.go