x/pkgsite: mismatch between GetLatestMajorPathForV1Path and getLatestMajorVersion #43849
What is the URL of the page with the issue?
What did you do?
Visited https://pkg.go.dev/github.com/mediocregopher/radix and was redirected to https://pkg.go.dev/github.com/mediocregopher/radix/v4. This should redirect to https://pkg.go.dev/github.com/mediocregopher/radix/v3, since that is the highest tagged version.
This is due to a mismatch in the logic between GetLatestMajorPathForV1Path and getLatestMajorVersion. GetLatestMajorPathForV1Path looks for the highest major version, numerically. getLatestMajorVersion takes into account whether the module has tagged versions.
The text was updated successfully, but these errors were encountered: