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 <julie@golang.org>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
diff --git a/internal/postgres/insert_module.go b/internal/postgres/insert_module.go
index 3906554..eb42286 100644
--- a/internal/postgres/insert_module.go
+++ b/internal/postgres/insert_module.go
@@ -210,13 +210,12 @@
if err != nil {
return fmt.Errorf("marshalling %+v: %v", l.Coverage, err)
}
- licenseValues = append(licenseValues, m.ModulePath, m.Version,
- l.FilePath, makeValidUnicode(string(l.Contents)), pq.Array(l.Types), covJSON, moduleID)
+ licenseValues = append(licenseValues, l.FilePath,
+ makeValidUnicode(string(l.Contents)), pq.Array(l.Types), covJSON,
+ moduleID)
}
if len(licenseValues) > 0 {
licenseCols := []string{
- "module_path",
- "version",
"file_path",
"contents",
"types",