-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
cmd/go: 'malformed record data' for goproxy.io sumdb proxy response when version is invalid #34394
Comments
Please mention the exact steps that you performed so that we can reproduce this. |
steps that I performed(Before to do the flowing step I executed go clean -modcache): $ git clone https://github.com/micro/examples.git |
The pseudo version is wrong, if you visit https://sum.golang.org/lookup/github.com/gogo/protobuf@v0.0.0-20190410021324-65acae22fc9 you'll see:
The correct pseudo-version is actually When I repeat your commands locally using the official Go proxy (proxy.golang.org) instead of goproxy.io, a clearer failure occurs earlier in
The error message here you saw isn't ideal because goproxy.io isn't validating pseudo-versions like proxy.golang.org is. The invalid pseudo-version has actually been fixed in k8s.io/api already with kubernetes/kubernetes#80732, but that new version has not been picked up by micro/go-plugins. There are actually three separate open issues in micro/go-plugins for this: micro/go-plugins#392, micro/go-plugins#394 and micro/go-plugins#396. You can work around this by adding a replace directive to the go.mod file:
|
@tmthrgd, thanks for investigating! One final note: it appears that the
CC @oiooj |
The fix for this diagnostic seems to belong in |
|
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (
go env
)?go env
OutputI got error when I was testing micro example(https://github.com/micro/examples/tree/master/config/grpc/srv). it report:
verifying github.com/gogo/protobuf@v0.0.0-20190410021324-65acae22fc9/go.mod: github.com/gogo/protobuf@v0.0.0-20190410021324-65acae22fc9/go.mod: malformed record data
The text was updated successfully, but these errors were encountered: