<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-pkgsite/internal/testing/sample/sample.go, branch main</title>
<subtitle>Fork of golang.org/x/pkgsite with my patches.</subtitle>
<id>http://git.kilabit.info/go-x-pkgsite/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go-x-pkgsite/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/'/>
<updated>2026-04-08T18:49:01Z</updated>
<entry>
<title>internal/api: add examples parameter to PackageParams</title>
<updated>2026-04-08T18:49:01Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-04-06T21:37:38Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=0ef8af41d6814a34f239b02ab621c4cfcb8c0019'/>
<id>urn:sha1:0ef8af41d6814a34f239b02ab621c4cfcb8c0019</id>
<content type='text'>
- Enable conditional population of examples by introducing a new
  examples parameter.

Change-Id: I53314344a414c41b423185c115e600ec8b63e6bf
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/763282
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
</content>
</entry>
<entry>
<title>all: add LatestVersion to ModuleInfo</title>
<updated>2026-03-25T15:29:54Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-18T20:31:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=c57126f9757fb25c781a59cb9ecc97b0af63727a'/>
<id>urn:sha1:c57126f9757fb25c781a59cb9ecc97b0af63727a</id>
<content type='text'>
- Add LatestVersion field to internal.ModuleInfo and update tests
  accordingly.
- Changed some test formatting to improve readability.

Change-Id: I1238e54614ef276d219b31d125cd2cad6b5a66f7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/756901
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
<entry>
<title>internal/testing: avoid data race to NonRedistributableLicense</title>
<updated>2025-11-13T18:00:00Z</updated>
<author>
<name>Rob Findley</name>
<email>rfindley@google.com</email>
</author>
<published>2025-11-13T16:37:20Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=6459d6d6148038426ae5568150921b5ae0f6bdca'/>
<id>urn:sha1:6459d6d6148038426ae5568150921b5ae0f6bdca</id>
<content type='text'>
During insertion, pkgsite may mutate non-redistributable licenses to
purge their contents. This leads to data races and path dependence in
tests that were reusing the sample.NonRedistributableLicense value.

Turn this variable into a function, so that we return a new value each
time.

This revealed a logic error in TestGetLicensesBypass: the test which was
nominally checking that the non-redistributable contents were returned,
was in fact also emptying out the expected contents, probably to make
the test pass given the bug fixed above.

Change-Id: I957014d009ae41638599d61592766b7ae1c175e7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/720260
Reviewed-by: Ethan Lee &lt;ethanalee@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>internal: move UnitMeta.IsRedistributable to Unit</title>
<updated>2024-01-23T15:28:52Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2024-01-17T19:10:26Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=c7eaeb891e256eea9575c5d1a33c3458161db86f'/>
<id>urn:sha1:c7eaeb891e256eea9575c5d1a33c3458161db86f</id>
<content type='text'>
Change-Id: Ia0a18df32d752f20b0400b47860638c7d0910eb7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/556435
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Robert Findley &lt;rfindley@google.com&gt;
</content>
</entry>
<entry>
<title>internal: move UnitMeta.Licenses to Unit</title>
<updated>2024-01-22T17:11:06Z</updated>
<author>
<name>Michael Matloob</name>
<email>matloob@golang.org</email>
</author>
<published>2024-01-11T21:23:56Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=506adfeab1ce4a0423fcfd861f0fb728202831a8'/>
<id>urn:sha1:506adfeab1ce4a0423fcfd861f0fb728202831a8</id>
<content type='text'>
Change-Id: If2b3c1acd4830948e2d134517608f89771a7abcb
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/555735
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Robert Findley &lt;rfindley@google.com&gt;
</content>
</entry>
<entry>
<title>all: gofmt</title>
<updated>2022-04-11T21:55:57Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2022-04-11T17:12:03Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=8ea409f829091208d2d0ba4d81ecbe83b0fee9bb'/>
<id>urn:sha1:8ea409f829091208d2d0ba4d81ecbe83b0fee9bb</id>
<content type='text'>
Gofmt to update doc comments to the new formatting.

For golang/go#51082.

Change-Id: Ia9e71e7ecac75822ff43d6c7e60f512442a5fa50
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/399617
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Auto-Submit: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
<entry>
<title>internal/licenses: remove Metadata.OldCoverage</title>
<updated>2021-11-15T20:17:11Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2021-11-15T14:18:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=664ef416968ca8bc699cf240615bbce4bd366f49'/>
<id>urn:sha1:664ef416968ca8bc699cf240615bbce4bd366f49</id>
<content type='text'>
We don't need the OldCoverage field anymore. All DBs have
only the new Coverage information.

Change-Id: Ib2d8e0cdacdc2f7b6514a8a5310d6905be15136c
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/363954
Trust: Jonathan Amsterdam &lt;jba@google.com&gt;
Run-TryBot: Jonathan Amsterdam &lt;jba@google.com&gt;
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jamal Carvalho &lt;jamal@golang.org&gt;
</content>
</entry>
<entry>
<title>internal/fetch: populate Unit.BuildContexts</title>
<updated>2021-08-24T19:26:13Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2021-08-24T10:49:17Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=a26f4ee24cbb490825ea7363507387eec389d132'/>
<id>urn:sha1:a26f4ee24cbb490825ea7363507387eec389d132</id>
<content type='text'>
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 &lt;jba@google.com&gt;
Run-TryBot: Jonathan Amsterdam &lt;jba@google.com&gt;
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Julie Qiu &lt;julie@golang.org&gt;
</content>
</entry>
<entry>
<title>internal/postgres: change upsertSymbolSearchDocuments query</title>
<updated>2021-07-13T16:25:53Z</updated>
<author>
<name>Julie Qiu</name>
<email>julie@golang.org</email>
</author>
<published>2021-06-22T05:14:47Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=01e3e3198312fe6a30cf012b4d06bee6872f7ef8'/>
<id>urn:sha1:01e3e3198312fe6a30cf012b4d06bee6872f7ef8</id>
<content type='text'>
The upsertSymbolSearchDocuments query is changed to filter on module
path and version, instead of passing an array of unit_ids.

Additional tests are added to TestSymbolSearch.

For golang/go#44142

Change-Id: Ic0c493711c2c8fcc32e207ea466c509e6f99209b
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/329924
Trust: Julie Qiu &lt;julie@golang.org&gt;
Run-TryBot: Julie Qiu &lt;julie@golang.org&gt;
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
<entry>
<title>internal/postgres: add symbol search</title>
<updated>2021-05-17T15:56:47Z</updated>
<author>
<name>Julie Qiu</name>
<email>julie@golang.org</email>
</author>
<published>2021-05-13T06:10:50Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=e9a096a2b83d33e6c957ba803ef1c9b479569be7'/>
<id>urn:sha1:e9a096a2b83d33e6c957ba803ef1c9b479569be7</id>
<content type='text'>
An initial version of symbol search is added. This runs separately from
regular search and is not connected to the frontend yet.

For golang/go#44142

Change-Id: I34a21a4a743a07dcfcdfeb64b52a86bc2254f62a
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/318870
Trust: Julie Qiu &lt;julie@golang.org&gt;
Run-TryBot: Julie Qiu &lt;julie@golang.org&gt;
TryBot-Result: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
</feed>
