-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proxy.golang.org: serve status 404/410 instead of 400 for versions that fail validation #33303
Comments
@bcmills: looks like you have an invalid pseudoversion in there? The error reporting is currently better for direct mode (see #30748):
|
I agree that there may be bad versions upstream and all that, but |
I should have said: this is intended new behavior in Go 1.13. See "Version Validation" in https://tip.golang.org/doc/go1.13. Sorry for the trouble; these were serious bugs that had to be fixed despite the incompatibility. |
Indeed. I think |
Note that the proxy could trigger the better (I thought we had an issue filed for that, but I can't find it right now.) |
@bcmills if a client is asking for an invalid version, then wouldn't 400 be the right status code? Or are you just suggesting that there be a better error message? |
@katiehockman, a version that is invalid from the perspective of the proxy — in particular, invalid from the perspective of the version of the |
Okay, thanks. So the 404/410 is important for the purposes of fallback to direct. |
Fix rollout is complete. This should be fixed by now. $ curl -i https://proxy.golang.org/k8s.io/client-go/@v/v2.0.0-alpha.0.0.20190202011228-6e4752048fde+incompatible.mod HTTP/1.1 410 Gone ... |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
The latest RC, yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I attempted to build a project with the following module:
You can include this module easily with
go build -d github.com/bcmills/k8s-mods
.What did you expect to see?
A build to be produced. This module builds fine on
go version go1.12.7 darwin/amd64
.What did you see instead?
The text was updated successfully, but these errors were encountered: