-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Open
Labels
Milestone
Description
What is the URL of the page with the issue?
What is your user agent?
Latest Firefox + Chromium
Screenshot
No response
What did you do?
Trying to use the URL shortcut for the synctest package: https://pkg.go.dev/synctest
What did you see happen?
I got a "404 Not Found" error page.
What did you expect to see?
I expected a redirect to https://pkg.go.dev/testing/synctest.
There is a redirect feature which let's you use the package name without the full package path (for stdlib packages). For example https://pkg.go.dev/http redirects to https://pkg.go.dev/net/http. But for the synctest package that does not seem to work.
Links I found while searching around this problem:
- Adding some tests for this feature: x/pkgsite: add testcase for stdlib shortcut in frontend.TestServer #39663
- Code where the feature is happening: https://github.com/golang/pkgsite/blob/950d5ec0f5e9dbe92b2d1b1301322ea7f75ca1de/internal/postgres/stdlib.go#L21