diff options
author | Ian Lance Taylor <iant@golang.org> | 2020-02-27 17:20:48 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2020-02-28 19:43:28 +0000 |
commit | a628ca32ebc0e4129f75b862bca945b326b298d7 (patch) | |
tree | 78c09b05850f5b6409401e85e77e6a779c0a2b68 | |
parent | 5c7c66ced5340e0fa1c6b69db54454e66bfb5c55 (diff) | |
download | golang-x-tools-a628ca32ebc0e4129f75b862bca945b326b298d7.tar.gz |
go/packages: drop imports of reflect in tests of import graph
In CL 219639 the generated testing package gets a dependency on reflect.
Trim that dependency in the go/packages tests, just as we trim
other dependencies of the generated testing package.
Updates golang/go#34129
Change-Id: I5e2578fc61cafb4d524d0a58525cf78a402c1143
Reviewed-on: https://go-review.googlesource.com/c/tools/+/221477
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Matloob <matloob@golang.org>
-rw-r--r-- | go/packages/packages_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/go/packages/packages_test.go b/go/packages/packages_test.go index 0cc437990..0be6f77db 100644 --- a/go/packages/packages_test.go +++ b/go/packages/packages_test.go @@ -2671,7 +2671,7 @@ func importGraph(initial []*packages.Package) (string, map[string]*packages.Pack for _, imp := range p.Imports { if isTestMain { switch imp.ID { - case "os", "testing", "testing/internal/testdeps": + case "os", "reflect", "testing", "testing/internal/testdeps": edges = append(edges, fmt.Sprintf("%s -> %s (pruned)", p, imp)) continue } |