Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/go: GODEBUG=gocacheverify=1 panic (internal cache error: cache verify failed) #35412
What version of Go are you using (
Thanks for reporting this. There does seem to be a reproducibility problem here. I'm not quite sure where it is yet, but I managed to reduce the repro to this small script:
I reproduced this on darwin_amd64 with go1.13.4 and
The source files in
I'll dig into the output files to see what the actual difference is and what might be causing it.
The compiler command with
So we're replacing the module source directory with the module path and version. Those end up in debug info in the compiled .a file. But the module path and version don't appear in the cache key. That's the problem.