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: new major version not surfaced when it does not yet have a release tag #41532

bcmills opened this issue Sep 21, 2020 · 2 comments


Copy link

@bcmills bcmills commented Sep 21, 2020

What did you do?

In the search bar, enter and press the Enter key.

What did you expect to see?

“The latest major version is v3”, per #37765, due to the existence of a module

What did you see instead?

A “Latest” badge, with no indication of a corresponding module with a higher major version, for both the package path and the corresponding module path.

The v3 module is also not listed on, although it is not obvious to me whether it should be included there.

The module is present and indexed on, but it appears that no release version has yet been tagged for that module. ( lists the latest version as a pseudo-version for commit 353fcf0, and does mention the release versions of the corresponding v0/v1 module.)

CC @julieqiu @AceroM @fflewddur



Copy link

@julieqiu julieqiu commented Sep 21, 2020

The issue here is that module does not have any tagged versions - returns an empty list.

As a result, recognizes v0 as the "latest stable" major version.

We should update the message on page like this. See also #41345.

Closing this as a dupe of #41345.

@julieqiu julieqiu closed this Sep 21, 2020
@julieqiu julieqiu reopened this Nov 4, 2020
Copy link

@julieqiu julieqiu commented Nov 4, 2020

Reopening this issue, since it requires a slightly different fix than #41345.

There is a bug in GetLatestMajorVersion, where the major version string will be an empty string if it is not v2 or higher.

It should show:


@jba jba removed this from the Unreleased milestone Nov 5, 2020
@jba jba added this to the pkgsite/unplanned milestone Nov 5, 2020
@julieqiu julieqiu removed the label Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants