-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/pkgsite: prefer directing the user to the same package in the highest tagged major version #42292
Comments
If anyone is interested in working on this, we'd love to accept a contribution for this feature! The current implementation always looks for the highest major version of the module: We could use the |
Hmm, I don't agree there. If I'm in The detail is that the link should be to |
@mvdan I agree this should be the behavior. My comments in #42292 (comment) are suggestions for how to get started, in case anyone is interested in working on this issue. |
Nope, all yours! Check out the CONTRIBUTING.md for how to get started. If you have questions, feel free to reach out in the #pkgsite channel on Gophers slack. |
Great! Thank you Julie :) |
CL for this here: https://go-review.googlesource.com/c/pkgsite/+/274413 Not sure why gobot hasn't linked. |
Change https://golang.org/cl/274413 mentions this issue: |
When I navigate to https://beta.pkg.go.dev/mvdan.cc/sh/syntax, clicking on "The highest tagged major version is v3" takes me to https://beta.pkg.go.dev/mvdan.cc/sh/v3, not https://beta.pkg.go.dev/mvdan.cc/sh/v3/syntax.
I guess this is fine as a fallback, if
v3/syntax
doesn't exist as a package. But if the same sub-package exists in the new major version of the module, I think we should directly link there. Otherwise I have to go into "directories" and find it again.Split off from #41588 (comment). CC @julieqiu
The text was updated successfully, but these errors were encountered: