<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-pkgsite, 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-14T18:16:22Z</updated>
<entry>
<title>[DO-NOT-MERGE] all: add option shutdown-idle</title>
<updated>2026-04-14T18:16:22Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2026-02-16T08:22:59Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=eb17f74b599d53a21952ee0b96ab68ed3cb86e3d'/>
<id>urn:sha1:eb17f74b599d53a21952ee0b96ab68ed3cb86e3d</id>
<content type='text'>
The shutdown-idle set the duration to automatically shutdown the HTTP
server when no request after specific duration.

This is to complement the socket based activation to minimize the
resources on local environment.
</content>
</entry>
<entry>
<title>[DO-NOT-MERGE] all: add make file</title>
<updated>2026-04-14T18:16:22Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2026-02-16T08:20:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=e64c25877e784baab341663fbc75ff909ee404f5'/>
<id>urn:sha1:e64c25877e784baab341663fbc75ff909ee404f5</id>
<content type='text'>
This is to easily remember what tasks and commands to run in this
repository.
</content>
</entry>
<entry>
<title>[DO-NOT-MERGE] cmd/pkgsite: implement socket based activation</title>
<updated>2026-04-14T18:16:21Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2026-02-02T16:00:55Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=14d652ebff33bd0e4769f47baba2574adabc494e'/>
<id>urn:sha1:14d652ebff33bd0e4769f47baba2574adabc494e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>internal/api: test ServePackage with db</title>
<updated>2026-04-14T16:19:25Z</updated>
<author>
<name>Jonathan Amsterdam</name>
<email>jba@google.com</email>
</author>
<published>2026-04-09T20:55:25Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=81095845401a2ac64bc5ee43a4f9b013207d3b7e'/>
<id>urn:sha1:81095845401a2ac64bc5ee43a4f9b013207d3b7e</id>
<content type='text'>
Test the ServePackage function against a real database, as well as the
fake data source.

- Modules and packages must be redistributable, or the DB strips
  the documentation.

- Documentation must contain source code.

We must temporarily skip the dependency tests, to reduce the diffs on
this change. The test is still important, because it asserts that the
pkgsite command has only a few dependencies. To re-establish it, we
will move the API tests to internal/testing/api.

Change-Id: I67243ea2345c5e735edbdd6ee5bf2349a6b1eb60
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/765502
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Ethan Lee &lt;ethanalee@google.com&gt;
Reviewed-by: Hyang-Ah Hana Kim &lt;hyangah@gmail.com&gt;
</content>
</entry>
<entry>
<title>internal/api: improve ambiguous package path resolution</title>
<updated>2026-04-13T18:42:30Z</updated>
<author>
<name>Hana Kim</name>
<email>hyangah@gmail.com</email>
</author>
<published>2026-04-13T02:10:16Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=aca48c6d9dcc4892027cdad3243527882201358b'/>
<id>urn:sha1:aca48c6d9dcc4892027cdad3243527882201358b</id>
<content type='text'>
Instead of falling back to UnknownModulePath, we now:

1. Query all candidate module paths.
2. Filter out candidates where the database fell back to a different module path (preventing false positives like google.golang.org).
3. Filter out deprecated or retracted candidates if at least one good candidate exists.
4. Return 400 if ambiguity remains among good candidates.

This commit fixes the issue where /v1/package/google.golang.org/adk/agent was returning HTTP 400 because all candidate module paths matched:

```
{
 "code":400,
 "message":"ambiguous package path",
 "candidates":[
  {"modulePath":"google.golang.org/adk/agent","packagePath":"google.golang.org/adk/agent"},
  {"modulePath":"google.golang.org/adk","packagePath":"google.golang.org/adk/agent"},
  {"modulePath":"google.golang.org","packagePath":"google.golang.org/adk/agent"}]
}
```

Change-Id: I3ea24bca5144d536490019efd85fb597da214029
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/766380
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@google.com&gt;
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
</content>
</entry>
<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>go.mod: update golang.org/x dependencies</title>
<updated>2026-04-10T09:54:59Z</updated>
<author>
<name>Gopher Robot</name>
<email>gobot@golang.org</email>
</author>
<published>2026-04-09T21:51:39Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=f7bc24a6530b92e33af894238e4f992d6e350f06'/>
<id>urn:sha1:f7bc24a6530b92e33af894238e4f992d6e350f06</id>
<content type='text'>
Update golang.org/x dependencies to their latest tagged versions.

Change-Id: I0e4e9a00bda8777e7930d2b09e40dba681bfb768
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764907
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Auto-Submit: Gopher Robot &lt;gobot@golang.org&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: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>internal/frontend: add v1/search endpoint</title>
<updated>2026-04-09T20:33:33Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-04-09T20:00:10Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=2099864dd3354159a4e0e9fb69fbb1f5d962399e'/>
<id>urn:sha1:2099864dd3354159a4e0e9fb69fbb1f5d962399e</id>
<content type='text'>
Change-Id: I53fc1becbee21fcc586e00f4e3d93f636eaaba4c
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764960
kokoro-CI: kokoro &lt;noreply+kokoro@google.com&gt;
Reviewed-by: Jonathan Amsterdam &lt;jba@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;
Commit-Queue: Ethan Lee &lt;ethanalee@google.com&gt;
</content>
</entry>
<entry>
<title>internal/api: refactor error handling to increase consistency</title>
<updated>2026-04-09T20:23:05Z</updated>
<author>
<name>Ethan Lee</name>
<email>ethanalee@google.com</email>
</author>
<published>2026-04-09T18:48:49Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-pkgsite/commit/?id=ee3de85430431a53d070e4712a5caa9ddcc28628'/>
<id>urn:sha1:ee3de85430431a53d070e4712a5caa9ddcc28628</id>
<content type='text'>
- Refactored error handling to avoid leaking internal implementation
  details. Database and system errors are masked by falling back to
  standard HTTP statuses but still logging the entire error context.
- User facing error messages can now be specified within the Error
  struct.
- Added helpers in types.go to simplify error construction.
- Updated ServeModuleVersions to explicitly return 404 when no versions
  are found.
- Expanded test coverage in api_test.go to include 404 and 400 edge
  cases.

Change-Id: I89c4be3941126c15df6aefdd21e4bbd2d3b23be1
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764820
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;
Reviewed-by: Jonathan Amsterdam &lt;jba@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>
</feed>
