-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: malformed file path error not bubbled up #34539
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
Wow, the real error message is way hidden. First off, normal
Let's try with no proxy:
Hmm .. okay the commit is lost somehow or something bad happened ? The github repo looks fine. Let's try with no sumdb:
Aha ! So it's because of a trailing @bcmills @jayconrod - Is there some open issue which somehow tracks bubbling up this error message in the default go get ? |
@agnivade 😲 Wow! That was a nasty little one. I've removed that |
@agnivade Wow, that's pretty obscure. We should definitely surface that better. In general, errors where we aren't able to produce a module zip aren't well reported. |
It looks like this is already mitigated at tip, so I'll close this as a duplicate of #30748.
Internally, the go command is successfully creating a module zip file, but it fails validation when we try to extract it. I don't believe there's any case where we create a zip file without extracting it, so while it may be a good idea to add some validation to the zip creation code, it wouldn't have any visible change. |
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
OutputWhat did you do?
What did you expect to see?
success (i.e. no error)
What did you see instead?
NOTE: With export
GO111MODULE=off
go get github.com/rubanbydesign/rest
succeeds.The text was updated successfully, but these errors were encountered: