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

sum.golang.org: doesn't response correctly #36827

Closed
ysmood opened this issue Jan 28, 2020 · 2 comments
Closed

sum.golang.org: doesn't response correctly #36827

ysmood opened this issue Jan 28, 2020 · 2 comments

Comments

@ysmood
Copy link

ysmood commented Jan 28, 2020

What did you do?

curl https://sum.golang.org/lookup/github.com/ysmood/kit@v0.19.2

What did you expect to see?

no error

What did you see instead?

not found: github.com/ysmood/kit@v0.19.2: invalid version: unknown revision v0.19.2

The version tag does exist, you can visit https://github.com/ysmood/kit/tree/v0.19.2 to check it.

If you do curl https://sum.golang.org/lookup/github.com/ysmood/kit@v0.19.1 it will work as expected.

Not sure if it's a bug of sum.golang.org or github.

@hyangah
Copy link
Contributor

hyangah commented Jan 28, 2020

@ysmood I guess this is fixed now - the sum.golang.org learned about v0.19.2 on 2020-01-28 8:12 EST (8min after this bug was reported)

Based on the log, {proxy,sum}.golang.org tried to fetch that version 7:42:01 EST, and couldn't find the version from the repo (so, "unknown revision v0.19.2"). This result was cached for some time.
I guess the tagging happened around ~7:42 EST based on the github release page, so there must be a race between release(tagging) and that new tag gets accessible by {proxy,sum}.golang.org.

@heschik @katiehockman

@hyangah hyangah changed the title sum.golang.org doesn't response correctly sum.golang.org: doesn't response correctly Jan 28, 2020
@hyangah
Copy link
Contributor

hyangah commented Jan 28, 2020

Actually, 7:42:01 EST was the logging timestamp, and the version fetch attempts were made before then. This is clearly because the request to {proxy,sum}.golang.org was sent too early. We will try to find a way to improve the user experience. For now, please make sure if the tagged version is available in the source - one option I can think of is to utilize GOPRIVATE to bypass {proxy,sum}.golang.org first and verify if the version can be fetched from the source.

@hyangah hyangah closed this as completed Jan 28, 2020
@golang golang locked and limited conversation to collaborators Jan 27, 2021
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