Skip to content

Commit 14e4d3b

Browse files
committed
internal/postgres: stop writing to licenses.module_path and licenses.version
In a later CL, licenses.module_path and licenses.version will be dropped. For golang/go#39629 Change-Id: I7de03b66686e04128c761f477130eb98571a8cd2 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/272087 Trust: Julie Qiu <[email protected]> Run-TryBot: Julie Qiu <[email protected]> TryBot-Result: kokoro <[email protected]> Reviewed-by: Jonathan Amsterdam <[email protected]>
1 parent 1f7534a commit 14e4d3b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

internal/postgres/insert_module.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,12 @@ func insertLicenses(ctx context.Context, db *database.DB, m *internal.Module, mo
210210
if err != nil {
211211
return fmt.Errorf("marshalling %+v: %v", l.Coverage, err)
212212
}
213-
licenseValues = append(licenseValues, m.ModulePath, m.Version,
214-
l.FilePath, makeValidUnicode(string(l.Contents)), pq.Array(l.Types), covJSON, moduleID)
213+
licenseValues = append(licenseValues, l.FilePath,
214+
makeValidUnicode(string(l.Contents)), pq.Array(l.Types), covJSON,
215+
moduleID)
215216
}
216217
if len(licenseValues) > 0 {
217218
licenseCols := []string{
218-
"module_path",
219-
"version",
220219
"file_path",
221220
"contents",
222221
"types",

0 commit comments

Comments
 (0)