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: docs for new Github repo using old repo name is not updated #46621

Closed
johan3141592 opened this issue Jun 7, 2021 · 1 comment
Closed

Comments

@johan3141592
Copy link

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/rubrikinc/rubrik-polaris-sdk-for-go

What is your user agent?

Chrome/90.0.4430.93

Screenshot

Screenshot from 2021-06-07 08-40-18

What did you do?

Enter https://pkg.go.dev/github.com/rubrikinc/rubrik-polaris-sdk-for-go in my browser

What did you expect to see?

The documentation for the new version of https://github.com/rubrikinc/rubrik-polaris-sdk-for-go

What did you see instead?

The documentation for the old version https://github.com/rubrikinc/rubrik-polaris-sdk-for-go

Note, the old repository was deprecated and a new previously private repository was made public with the same name.

@gopherbot gopherbot added this to the Unreleased milestone Jun 7, 2021
@jba
Copy link
Contributor

jba commented Jun 7, 2021

Let me see if I can reconstruct the events here. I've included what happens with the Go module mirror (proxy.golang.org) and with pkgsite.

  1. You created github.com/rubrikinc/rubrik-polaris-sdk-for-go, made a v1.0.6 tag.
  2. You or someone else used go get to get the module, with the default settings for the go command. This caused proxy.golang.org to fetch your repo and note that the latest tag was 1.0.6. It published that information to its complete list of modules, index.golang.org.
  3. pkgsite read the index, saw v1.0.6 of your module, and added it to its database.
  4. You deleted the repo and re-created it with the same name. Nothing in the proxy changed. (Indeed, the proxy's data is effectively immutable: nothing is ever deleted.)
  5. You added some v0 tags. The proxy and pkgsite picked them up, as before.
  6. You visited your module path on pkgsite without an explicit version, so pkgsite find the latest version, using semantic versioning. The latest version with that path is v1.0.6, so that's what it shows.

You can publish a version greater than v1.0.6, but I believe you don't want to do that while the software is beta. The only other option is to change the module path.

@jba jba closed this as completed Jun 7, 2021
@golang golang locked and limited conversation to collaborators Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants