]> Cypherpunks repositories - gostls13.git/commit
cmd/api: use 'go list' to locate transitive dependencies of std
authorBryan C. Mills <bcmills@google.com>
Tue, 5 Mar 2019 21:52:48 +0000 (16:52 -0500)
committerBryan C. Mills <bcmills@google.com>
Fri, 8 Mar 2019 15:14:27 +0000 (15:14 +0000)
commit361a01983f01790694d5c7773d56a560c01b96cb
tree7ab534679f0a05d64e769b854009c77963ecf8c3
parent49662bc6b02810389c66b6b24576f6a5b217d471
cmd/api: use 'go list' to locate transitive dependencies of std

With standard-library modules and vendoring, the mapping from import
path to directory within the standard library is no longer entirely
trivial. Fortunately, 'go list' makes that mapping straightforward to
compute.

Updates #30241
Updates #30228

Change-Id: Iddd77c21a527b7acdb30c17bec8b4bbd43e23756
Reviewed-on: https://go-review.googlesource.com/c/go/+/165497
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/api/goapi.go