diff options
| author | Jonathan Amsterdam <jba@google.com> | 2021-08-24 06:49:17 -0400 |
|---|---|---|
| committer | Jonathan Amsterdam <jba@google.com> | 2021-08-24 19:26:13 +0000 |
| commit | a26f4ee24cbb490825ea7363507387eec389d132 (patch) | |
| tree | 63f874d6ad93465118b97fea0604f85ec9489b6e /internal/postgres/insert_module_test.go | |
| parent | daea3ebe1e86d669ba2762a1f83ce4a5d15f8a12 (diff) | |
| download | go-x-pkgsite-a26f4ee24cbb490825ea7363507387eec389d132.tar.xz | |
internal/fetch: populate Unit.BuildContexts
Populate the lists of build contexts when fetching a module.
Currently we only do this when reading from the DB. We want
DataSources that rely only on fetch to have the right value.
For golang/go#47780
Change-Id: Ie85fba8ccb318bb4ed5c1f2153b0ba4216358022
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/344670
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
Diffstat (limited to 'internal/postgres/insert_module_test.go')
| -rw-r--r-- | internal/postgres/insert_module_test.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/postgres/insert_module_test.go b/internal/postgres/insert_module_test.go index 0e1ca99c..00e178d9 100644 --- a/internal/postgres/insert_module_test.go +++ b/internal/postgres/insert_module_test.go @@ -111,7 +111,6 @@ func checkModule(ctx context.Context, t *testing.T, db *DB, want *internal.Modul } } wantu.Subdirectories = subdirectories - wantu.BuildContexts = got.BuildContexts opts := cmp.Options{ cmpopts.EquateEmpty(), cmpopts.IgnoreFields(licenses.Metadata{}, "Coverage", "OldCoverage"), |
