aboutsummaryrefslogtreecommitdiff
path: root/internal/postgres/insert_module.go
diff options
context:
space:
mode:
authorJulie Qiu <julie@golang.org>2021-02-16 12:15:23 -0500
committerJulie Qiu <julie@golang.org>2021-02-18 16:47:36 +0000
commit1676d33cc9abd858efa6cec83414b2714b7e8b8b (patch)
tree030deaf410f81605d4779414a7340c699fae6fd2 /internal/postgres/insert_module.go
parenta5554298f4ceac2833abe78e904b6cfc8a0259ad (diff)
downloadgo-x-pkgsite-1676d33cc9abd858efa6cec83414b2714b7e8b8b.tar.xz
internal/postgres: insert symbol history
Data for a package's symbol history is inserted into the symbol_history table. This change is added behind a feature flag as additional tests will be added. This change does not take into account cases where the GOOS/GOARCH for a package changes from "all/all" to all of the supported build context combinations at a later version. This edge case will be addressed in a later CL. For golang/go#37102 Change-Id: Ia3abf1cf63159cb5b1b2b926a305ab606926a4ec Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/292511 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>
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 3b557235..9a992bc9 100644
--- a/internal/postgres/insert_module.go
+++ b/internal/postgres/insert_module.go
@@ -378,7 +378,7 @@ func (pdb *DB) insertUnits(ctx context.Context, db *database.DB, m *internal.Mod
return err
}
if versionType == version.TypeRelease {
- return insertSymbols(ctx, db, pathToDoc)
+ return insertSymbols(ctx, db, m.ModulePath, m.Version, pathToID, pathToDoc)
}
return nil
}