Open
Description
What is the URL of the page with the issue?
http://localhost:8080/golang.org/x/sync/errgroup (and any other)
What is your user agent?
any
Screenshot
What did you do?
go mod init some.test/module
go get golang.org/x/sync/errgroup # or any other
pkgsite
Then open the supposed URL for this package’s docs: http://localhost:8080/golang.org/x/sync/errgroup
This seems to happen with any package other than standard library. The standard library works, e.g. http://localhost:8080/net/http
It does work if I run pkgsite -cache
, but then the standard library doesn’t work.
What did you see happen?
An error page (see screenshot). pkgsite
produces the following log:
2024/04/11 16:09:14 Info: go/packages.Load(["all"]) loaded 0 packages from . in 7.62895ms
2024/04/11 16:09:14 Info: go/packages.Load(std) loaded 289 packages from /home/vasiliy/my.bulk/ware/go/1.22.0 in 227.310508ms
2024/04/11 16:09:14 Info: FetchDataSource: fetching some.test/module@v0.0.0
2024/04/11 16:09:14 Info: FetchDataSource: fetched some.test/module@v0.0.0 using <nil> in 27.44µs with error some.test/module@v0.0.0: not found
2024/04/11 16:09:14 Info: FetchDataSource: fetching std@latest
2024/04/11 16:09:14 Info: Listening on addr http://localhost:8080
2024/04/11 16:09:14 Info: FetchDataSource: fetched std@latest using *fetch.goPackagesModuleGetter in 141.052419ms with error <nil>
2024/04/11 16:09:24 Info: FetchDataSource: fetching golang.org/x/sync/errgroup@latest
2024/04/11 16:09:24 Info: FetchDataSource: fetched golang.org/x/sync/errgroup@latest using <nil> in 12.851µs with error golang.org/x/sync/errgroup@latest: not found
2024/04/11 16:09:24 Info: FetchDataSource: fetching golang.org/x/sync@latest
2024/04/11 16:09:24 Info: FetchDataSource: fetched golang.org/x/sync@latest using <nil> in 3.525µs with error golang.org/x/sync@latest: not found
2024/04/11 16:09:24 Info: returning 424 (Failed Dependency) for error serveUnitPage(ctx, w, r, ds, &{golang.org/x/sync/errgroup unknownModulePath latest}): 424 (Failed Dependency): <nil> (epage=&{{ <nil> false false false false } <h3 class="Error-message">This page is not supported by this datasource.</h3> <nil>})
What did you expect to see?
The documentation for the golang.org/x/sync/errgroup
package.