Skip to content
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: consider surfacing fork status and activity details vs upstream #61306

Open
ldemailly opened this issue Jul 11, 2023 · 2 comments
Open

Comments

@ldemailly
Copy link

ldemailly commented Jul 11, 2023

While in some cases a fork may actually be the better, more maintained, more adopted version, when the parent does have more activity than the fork, it would probably be helpful to show the parent in the Links or elsewhere in the header section of the pkg page

Somewhat related also would be to rank it lower in search results

Example:

https://pkg.go.dev/search?q=fortio&m=

shows

https://pkg.go.dev/github.com/lemonlinger/fortio
and
https://pkg.go.dev/github.com/CrowdStrike/fortio
and
https://pkg.go.dev/github.com/MUzairS15/fortio

all stale forks with minor to no updates and not the original

https://pkg.go.dev/fortio.org/fortio

which isn't at all on the list (only sub packages are somehow)

Screenshot

Screenshot 2023-07-11 at 12 14 40 PM Screenshot 2023-07-11 at 12 15 15 PM

What did you expect to see?

Screenshot 2023-07-11 at 12 15 47 PM
@gopherbot gopherbot added this to the Unreleased milestone Jul 11, 2023
@hyangah
Copy link
Contributor

hyangah commented Jul 11, 2023

The tricky part is the source of the information is proxy.golang.org, which doesn't have sufficient info to tell which is a fork.

In theory, the pkgsite may try to check the source repository (heuristically) and query hosting sites (if they offer apis). But I wonder if it's better to investigate we could get better signals from proxy to improve search ranking instead.

@ldemailly
Copy link
Author

Thanks for having looked! I think it may be related tangentially related to #36952 as that one would also need to pull meta information for github and not just the proxy (or the proxy could as it's pulling from github in the end?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants