Skip to content

Commit

Permalink
internal/postgres: stop writing to licenses.module_path and licenses.…
Browse files Browse the repository at this point in the history
…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>
  • Loading branch information
julieqiu committed Nov 20, 2020
1 parent 1f7534a commit 14e4d3b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/postgres/insert_module.go
Original file line number Diff line number Diff line change
Expand Up @@ -210,13 +210,12 @@ func insertLicenses(ctx context.Context, db *database.DB, m *internal.Module, mo
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",
Expand Down

0 comments on commit 14e4d3b

Please sign in to comment.