x/pkgsite: mismatch between GetLatestMajorPathForV1Path and getLatestMajorVersion #43849
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
pkgsite
Milestone
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/mediocregopher/radix
Screenshot
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: