Skip to content

x/pkgsite: invalid versions for subdirectories #51720

@stevenh

Description

@stevenh

What is the URL of the page with the issue?

https://pkg.go.dev/github.com/gomodule/redigo/redis

What is your user agent?

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36

Screenshot

First go to the URL directly
image
Second clicks the sub directory link from the main repo, which shows the latest link in red indicating the link from latest gomodules/redigo doesnt link to the latest gomodules/redigo/redis which should be the same.
image

Versions aren't listed in the sub directory:
image

What did you do?

Two flows:

Issue 1

  1. Go to the redis main page with no version: https://pkg.go.dev/github.com/gomodule/redigo/redis
  2. See that the version is: v0.0.0-...-e14091d instead of 1.8.8 which is currently the latest.

Issue 2

  1. Go to to the page repo root: https://pkg.go.dev/github.com/gomodule/redigo
  2. Click Directories -> redis link
  3. See the second image above where the "Go to Latest" button is red and shouldn't be

What did you expect to see?

Sub directories in repos use the latest version by default.

What did you see instead?

Sub directories doesn't even list any version

Relevant information

We redigo have an experimental v2.0.0 branch before go modules we're introduced which has been challenging. With the introduction of retract in v1.16 we recently retracted this version in this commit so wondering if this is an edge case which pkgsite isn't dealing with?

Thanks for pabigot for raising this gomodule/redigo#602

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeWaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.pkgsite

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions