golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.17k stars 17.69k forks source link

x/pkgsite: package search finding the wrong subpackage #70459

Open ComaVN opened 6 hours ago

ComaVN commented 6 hours ago

What is the URL of the page with the issue?

https://pkg.go.dev/search?q=multee

What is your user agent?

Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Screenshot

image

What did you do?

I published my package multee.

What did you see happen?

pkg.go.dev doesn't show the main package when searching for "multee", but a sub-package (an alternative implementation that I kept around for benchmarking and testing)

What did you expect to see?

I expect to see the search results show the main package, not a "random" sub package.

gabyhelp commented 6 hours ago

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

ComaVN commented 6 hours ago

Some context: in the v0.0.1 version, the sub-package with the alt implementation was also named multee, which I fixed in v0.0.3

If I search for the module in a different way, eg. "multiplexer for io.Readers", it does show the main package.

adonovan commented 6 hours ago

@jba