Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: malformed file path error not bubbled up #34539
What version of Go are you using (
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
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.