-
Notifications
You must be signed in to change notification settings - Fork 18k
proxy.golang.org: '400 bad request' for pseudo-versions that refer to commits that also have canonical version tags #32879
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
Comments
That suggests that the proxy probably should have instead returned a 404 or 410 to prompt the CC @hyangah @katiehockman @heschik |
If you visit the URL directly you'll see that it says "invalid version". That could be improved, but I don't know how much we should invest in it until #30748 is fixed; odds are nobody will see it anyway. |
@bcmills: |
@heschik, the validation rule in I suppose we could tighten up that validation so that the base tag must be on some actual ancestor rather than the commit itself. I don't have a solid intuition one way or the other on that (cc @jayconrod). |
Hrm, that's odd. Using
|
nb: I was installing |
Ah, here we go. I guess we try to download the For completeness:
|
FWIW, there are other bogus versions mentioned in that same
|
Change https://golang.org/cl/184720 mentions this issue: |
CL 184720 will tighten up the validation so that this pseudo-version is treated as actually-invalid. However, there remains a bug in the proxy for valid pseudo-versions naming commits that have subsequently had canonical tags applied:
|
Another instance of this error message spotted in the wild, fingers crossed on my part that you've already fixed it with the above? In
|
This is the case Bryan mentioned in #32879 (comment). We don't know what we're going to do about it yet, but it's on our radar. |
Do not allow a pseudo-version derived from a canonical tag to refer to the same revision as the tag itself. It's unnecessary (because canonical tags already have a total ordering) and confusing (the pseudo-version appears to come after the tag, but actually refers to the exact same revision). Updates #32879 Updates #27173 Change-Id: I02befedbe89c8819bdd93e470783ce63fc813193 Reviewed-on: https://go-review.googlesource.com/c/go/+/184720 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
@it-philpennock, I just checked Are you still observing this issue? If not, I'll close it out. |
Works for me now. Thanks. |
Closing per last two comments. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputUbuntu Disco Dingo,
go1.13beta1
downloaded from the Golang site.What did you do?
What did you expect to see?
Either a successful build or some kind of build failure
What did you see instead?
A bad request from
proxy.golang.org
:I repeated the command, to rule out transient glitch. I then ran
GOPROXY=direct go install
which continued past that point to get to a different inscrutable error but one which is more likely tied to the project itself. Limiting this issue to the observed proxy error.The text was updated successfully, but these errors were encountered: