diff --git a/go/packages/packages_test.go b/go/packages/packages_test.go index 5f6c2eb73e..50e6344f3b 100644 --- a/go/packages/packages_test.go +++ b/go/packages/packages_test.go @@ -1600,6 +1600,12 @@ func importGraph(initial []*packages.Package) (string, map[string]*packages.Pack continue } } + // math/bits took on a dependency on unsafe in 1.12, which breaks some + // tests. As a short term hack, prune that edge. + // TODO(matloob): think of a cleaner solution, or remove math/bits from the test. + if p.ID == "math/bits" && imp.ID == "unsafe" { + continue + } edges = append(edges, fmt.Sprintf("%s -> %s", p, imp)) visit(imp) }