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
x/vgo: ziphash mismatch between different platform #26229
What version of Go are you using (
Needless to say, that's not supposed to happen. On my Mac I get the same hash you do on Linux. Windows is the difference. We're using a bare Git repo and 'git archive', which I assumed never even wrote the individual files to disk, so I thought I wouldn't have to worry about line endings. (I'm assuming its line endings, but who knows?)
Can you please attach %GOPATH%\src\mod\cache\download\github.com\cjtoolkit\validate@v\v1.1.0.zip from your Windows system to this issue?
I got a potential fix here, replace the command
This should enforce the unix line ending, on any platform.
On windows, in powershell I executed those commands
Deleted the mod folder, than ran
I can confirm, the line ending was causing the issue.