internal/postgres: don't remove imports in InsertSampleDirectoryTree
The LegacyPackage.Imports field isn't used anywhere.
For golang/go#39629
Trust: Julie Qiu
Run-TryBot: Julie Qiu
TryBot-Result: kokoro
@@ -212,9 +212,6 @@ func InsertSampleDirectoryTree(ctx context.Context, t *testing.T, testDB *DB) {
},
} {
m := sample.LegacyModule(data.modulePath, data.version, data.suffixes...)
- for _, p := range m.LegacyPackages {
- p.Imports = nil
- }
if err := testDB.InsertModule(ctx, m); err != nil {
t.Fatal(err)
}
