aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module.go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2020-06-15 20:42:29 -0400
committerJulie Qiu <julie@golang.org>2020-06-16 13:21:57 +0000
commit0f64776f0ad7db601e281fc94e19ca01d621ea19 (patch)
tree60521c17f16aee4dd3637b90408732866777eb8b /internal/postgres/insert_module.go
parent978e919784e0e4d6d3e5019454ed6c5cbcafef81 (diff)
downloadgo-x-pkgsite-0f64776f0ad7db601e281fc94e19ca01d621ea19.tar.xz
internal: rename GetModuleLicenses to LegacyGetModuleLicenses
Change-Id: I05339642aaa7f22ff0074eef99681953574b5bdd Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/238023 Reviewed-by: Jonathan Amsterdam <jba@google.com>
Diffstat (limited to 'internal/postgres/insert_module.go')
-rw-r--r--internal/postgres/insert_module.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/postgres/insert_module.go b/internal/postgres/insert_module.go
index 76ab1aed..4304708d 100644
--- a/internal/postgres/insert_module.go
+++ b/internal/postgres/insert_module.go
@@ -612,7 +612,7 @@ func validateModule(m *internal.Module) (err error) {
// are licenses in the licenses table that are not present in m.Licenses.
func (db *DB) compareLicenses(ctx context.Context, m *internal.Module) (err error) {
defer derrors.Wrap(&err, "compareLicenses(ctx, %q, %q)", m.ModulePath, m.Version)
- dbLicenses, err := db.GetModuleLicenses(ctx, m.ModulePath, m.Version)
+ dbLicenses, err := db.LegacyGetModuleLicenses(ctx, m.ModulePath, m.Version)
if err != nil {
return err
}