]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] go/internal/gcimporter: flatten imports
authorMatthew Dempsky <mdempsky@google.com>
Wed, 27 Jul 2022 21:24:46 +0000 (14:24 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 28 Jul 2022 07:31:58 +0000 (07:31 +0000)
commitc8d5ccf82ec24ff3855c1717d46df6a0c60684de
tree7a6a4fbd30fc6c37ba3012d84d384be81fa23f6e
parentac0844ec274bf6cfd64bc8fa1e2cc8b24c789dee
[dev.unified] go/internal/gcimporter: flatten imports

The current documentation for go/types.(*Packages).Imports requires
that the import graph be flattened when read from export data. I think
this is a documentation bug (incorrectly codifying the existing
behavior, rather than documenting it as a known bug), but until that's
decided, we can at least flatten imports ourselves.

Updates #54096.

Change-Id: Idc054a2efc908b3e6651e6567d0ea0e89bb0c54d
Reviewed-on: https://go-review.googlesource.com/c/go/+/419596
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/go/internal/gcimporter/ureader.go