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

GoCenter is serving bad timestamps for pseudo-versions #44

Open
elioengcomp opened this issue Mar 30, 2020 · 2 comments
Open

GoCenter is serving bad timestamps for pseudo-versions #44

elioengcomp opened this issue Mar 30, 2020 · 2 comments
Labels
component: downloads Download of modules priority: medium stage: triaging We are working on understanding the issue. type: bug Something isn't working

Comments

@elioengcomp
Copy link
Contributor

As pointed out by @mikesep on Gophers Slack, GoCenter is serving bad timestamp for pseudo-versions in the list operation. This is causing the Go client to use a wrong version as the latest for modules without release tags when the user do not specify which version to fetch.

Example:

→ curl https://gocenter.io/github.com/AlekSi/gocov-xml/@v/list
v0.0.0-20130903134006-d2f6da892a0d 2019-09-22T08:18:12Z
v0.0.0-20180429091052-dee33fe4b4ad 2019-01-24T11:42:27Z
v0.0.0-20190121064608-3a14fb1c4737 2019-01-23T07:24:47Z

Until we have a fix for this, users have a workaround by specifying which version to fetch in their go get commands or go.mod files.

@elioengcomp elioengcomp added type: bug Something isn't working priority: medium component: downloads Download of modules stage: triaging We are working on understanding the issue. labels Mar 30, 2020
@elioengcomp elioengcomp self-assigned this Mar 30, 2020
@jpopadak
Copy link

jpopadak commented Apr 8, 2020

Do you have any examples for how to do the workaround?

@elioengcomp
Copy link
Contributor Author

Specify which version to fetch using the go get command:

Example:

go get github.com/AlekSi/gocov-xml@v0.0.0-20190121064608-3a14fb1c4737

You can also edit your go.mod file and add the dependency version there as well.

Example:

require (
    github.com/AlekSi/gocov-xml v0.0.0-20190121064608-3a14fb1c4737
)

@elioengcomp elioengcomp removed their assignment Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: downloads Download of modules priority: medium stage: triaging We are working on understanding the issue. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants