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: There doesn't appear to be a way to report packages that no longer exist #43297
Comments
Deleting the module's repo doesn't remove it from the proxy, and pkg.go.dev gets its information from the proxy:
That's by design. It prevents "left pad" situations where someone deletes a module that many others depend on. It also fits with the module design, which decouples module zip files from source code repositories. You can provide a module to the Go ecosystem without a publicly visible source host, just by hosting the module zip file. That said, there are still some actions that could be taken:
|
Thanks for the explanation, I was not aware that the Go proxy was used at all times, and this proxy behaviour does sound like a good idea as you described it. Checking links might not be a good idea at serving time, but I assume the proxy itself is doing some periodic checks for new versions. It might make sense to somehow hook into those checks and eventually disable the pages for packages that have disappeared for an extended period? Ultimately I don't care enough to push here for some change, but I do think there should be a process to automatically groom out abandoned packages from the live documentation to keep the documentation relevant. |
The problem is, it's hard to know something's abandoned unless the author specifically tells us to remove it. Even removal of the source repo might not be enough of a signal—maybe the author decided to deliver the zip directly. I think a better way to tackle this problem is to clearly indicate certain package properties, and perhaps de-emphasize them in search, without removing the docs completely. How did you happen to come across this package? That would give us useful information about how we could make it less likely. |
I simply wanted to see how others had already integrated the Some digging led me to an alternative, more recent fork, which is also in Ideally the I also expect it depends on Google search voodoo more than anything else. |
@jba I got a similar issue. I was trying to publish a package under custom domain, by accidentally the https://pkg.go.dev/golang.design/x/clipboard This link always response 302 and refer to the location Now, I would like to get everything correctly index on pkg.go.dev, and the link should show display API document properly. What should I do? |
@changkun Try publishing a higher version (v0.2.0, or v0.1.1) of golang.design/x/clipboard with a corrected go.mod file. |
Thanks for the quick response. I just published a v0.1.1. But the link remains 302, how long should I wait generally? Is this process documented somewhere? |
Ten minutes or so. The process is documented under "Adding a package" at https://pkg.go.dev/about, but the time lag isn't mentioned because it's variable and subject to change. Did you |
Thanks for your detailed explanation, now everything works. (Maybe it would be great by adding one or more sentence to the about section that explains the index can be updated by publishing a newer version) |
It makes a lot of sense to keep all versions of a module available from the proxy. It would be really nice if it were easier for module owners to take down the documentation completely, though. Perhaps pkg.go.dev could verify ownership by having the owner push a tag with some well-publicized value (e.g., A motivating example: I created a module under my own GitHub username, then decided to move it to its own GitHub org. I've retracted all versions of the old module, but it's still appearing in search results even though it has no usable versions and no users. |
That's our bug. See #47590. |
Awesome, I'll follow that issue. Thanks for the weekend reply! |
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/ivorscott/gorm-zerolog
What is your user agent?
Not relevant.
Screenshot
What did you do?
Click the link to the package on GitHub
What did you expect to see?
Source Code
What did you see instead?
The text was updated successfully, but these errors were encountered: