<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-pkgsite/internal/testing/fakedatasource/fakedatasource.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-10T21:29:59Z</updated>
<entry>
<title>internal/testing/fakedatasource: improve doc</title>
<updated>2026-04-10T21:29:59Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2026-04-09T12:10:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=70e5087371296e2632232f4a3a795f124c73baf3'/>
<id>urn:sha1:70e5087371296e2632232f4a3a795f124c73baf3</id>
<content type='text'>
This was inadvertently left out of an earlier CL.

Change-Id: I5ec5d82c9fa2efcc27c076360cb50097c86655d7
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764821
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ethan Lee &lt;ethanalee@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
</content>
</entry>
<entry>
<title>internal/api: test licenses and imports params</title>
<updated>2026-04-09T19:22:10Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2026-04-09T12:10:31Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=654ef90febc3cd4bbc261b97fbea7a6c45e1d26d'/>
<id>urn:sha1:654ef90febc3cd4bbc261b97fbea7a6c45e1d26d</id>
<content type='text'>
Test the "licenses" and "imports" query params for the packages route.

Change-Id: I46c7dd18f0eb2e104d124d2d724039f920247e5b
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764540
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
TryBot-Bypass: Jonathan Amsterdam &lt;jba@google.com&gt;
Reviewed-by: Ethan Lee &lt;ethanalee@google.com&gt;
Auto-Submit: Jonathan Amsterdam &lt;jba@google.com&gt;
</content>
</entry>
<entry>
<title>internal/api: implement package imported-by endpoint</title>
<updated>2026-03-30T20:26:49Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-11T21:20:21Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=8514eebca6ca7b3213e879faa2a83c7e9ea6e181'/>
<id>urn:sha1:8514eebca6ca7b3213e879faa2a83c7e9ea6e181</id>
<content type='text'>
- Implement ServePackageImportedBy handler and GetImportedBy and GetImportedByCount datasource methods.

Change-Id: I8c4cc65fbff7172eaf48e5426e4f3f41c82bd38e
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754865
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;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
</content>
</entry>
<entry>
<title>internal: consolidate build context and unit resolution logic</title>
<updated>2026-03-26T21:02:59Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-25T18:18:15Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=34edebc0803b121acd1cbf363eef074e0a13ab6d'/>
<id>urn:sha1:34edebc0803b121acd1cbf363eef074e0a13ab6d</id>
<content type='text'>
- Centralize logic for resolving units and selecting the best matching
  build context.
- New helpers MatchingBuildContext, SortedBuildContexts provide a
  consistent, efficient approach to build context selection.
- DocumentationForBuildContext now finds the best match based on
  precdence rules rather than just returning the first match.
- A new getUnitContext helper resolves unit metadata and the best build
  context in a single query.
- GetSymbols and GetUnit are now both optimized to use pre-resolved IDs,
  simplifying their queries and removing redundant joins.
- Replaced redundant matchingDoc functions in fetchdatasource and
  fakedatasource.

Change-Id: I9207d3bfe03404483c816090a0b99666f14a36e3
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/759162
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;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
</content>
</entry>
<entry>
<title>internal/api: implement package symbols endpoint</title>
<updated>2026-03-26T17:33:29Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-11T21:17:12Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=06c847e1184d477cfb622ff6710b48848bf0ffcf'/>
<id>urn:sha1:06c847e1184d477cfb622ff6710b48848bf0ffcf</id>
<content type='text'>
- Introduce a new ServePackageSymbols handler that utilizes the new
  db.GetSymbols method.
- Consolidated module resolution logic shared by ServePackages into
  resolveModulePath.
- Updated Datasource with GetSymbols, which provides a more efficient
  way to retrieve all symbols for a package at a given version and build
  context. This differs from the existing getPackageSymbols, since that
  will return symbols for the latest release/compatible version.
- Refactored packageSymbolQueryJoin into a generic helper by removing
  hardcoded version filters. This allows GetSymbols to query for any
  specific version, while getPackageSymbols was updated to explicitly
  include release-only filters to preserve its existing behavior.
- GetSymbols still utilizes the same underlying packageSymbolQueryJoin,
  but it will also attempt to match the most relevant BuildContext for
  the query. It will also provide a mapping of parent and child symbols.

Change-Id: Ib18d2511d24ac6bc5b75c7b3809c4ce126245036
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754864
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
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;
</content>
</entry>
<entry>
<title>internal/api: implement module packages endpoint</title>
<updated>2026-03-24T17:46:32Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-11T21:08:19Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=9da8f15f1c5721ddc1866bda9091a7f49c63fa10'/>
<id>urn:sha1:9da8f15f1c5721ddc1866bda9091a7f49c63fa10</id>
<content type='text'>
- Implement the ServeModulePackages handler and introduce
  GetModulePackages to return the list of packages for a given module
  version.

Change-Id: I20c1618e2fdbf0126cb913665a1d7457b8951177
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754863
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/api: implement module versions endpoint</title>
<updated>2026-03-23T16:41:31Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-11T21:04:11Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=c43b677a694ff5791b1b696298c9e29ae6d221bb'/>
<id>urn:sha1:c43b677a694ff5791b1b696298c9e29ae6d221bb</id>
<content type='text'>
- Implement module versions endpoint using ds.GetVersionsForPath
- Introduce paginate helper to generalize paginaton logic
- Update fakedatasource to correctly use V1Path to return all versions

Change-Id: Icc028bf8ca9c13978bb6eba84afe9736ccd6bcee
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754862
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
</content>
</entry>
<entry>
<title>internal: conditionally return documentation in GetUnit</title>
<updated>2026-03-20T17:16:35Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-18T18:44:04Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=09023703e191c710c472865870494ff3c20513ce'/>
<id>urn:sha1:09023703e191c710c472865870494ff3c20513ce</id>
<content type='text'>
- Large documentations blobs should avoid being returned unless
  explicitly requested. Add a WithDocsSource to enable retrieval of
  unit information without the large documentation source information.
- This does not functionally change existing GetUnit callsites.

Change-Id: Ie983b7eaeb61bb92f2716ae64a3d1e1ea738dbe2
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/756480
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Auto-Submit: Ethan Lee &lt;ethanalee@google.com&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<entry>
<title>internal/api: implement module metadata endpoint</title>
<updated>2026-03-19T18:14:09Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-03-11T21:00:08Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=ab4b6a99d7828154fc803870bbb2f18835d6470b'/>
<id>urn:sha1:ab4b6a99d7828154fc803870bbb2f18835d6470b</id>
<content type='text'>
Change-Id: Id6b8686012803c88c9b7ea71e4b1c0058b7967b0
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754861
Auto-Submit: Ethan Lee &lt;ethanalee@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;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
</content>
</entry>
<entry>
<title>all: make function and struct comments match the names</title>
<updated>2025-01-03T16:39:34Z</updated>
<author>
<name>cuishuang</name>
<email>imcusg@gmail.com</email>
</author>
<published>2025-01-01T14:24:04Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=f8b0e9b88125c8582bde37f783b5fea7146093fe'/>
<id>urn:sha1:f8b0e9b88125c8582bde37f783b5fea7146093fe</id>
<content type='text'>
Change-Id: Ic939b5b002e881f8041ccb95114010fe7e751f9a
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/639558
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@google.com&gt;
Auto-Submit: Ian Lance Taylor &lt;iant@google.com&gt;
</content>
</entry>
</feed>
