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: unclear error when SumDB tree note is corrupted #38348
Comments
Probably you have a corrupted file somewhere, but that diagnostic isn't giving you enough information to find and fix it. @FiloSottile, what method would you recommend to repair this, and can we either do that automatically or add detail to the error message? |
@nicolascamilo for now in order to unblock you, can you try clearing your module cache to see if that resolves the issue? You can do that by running If that fixes your specific problem, then we should still leave this issue open for the investigation that @bcmills mentioned above. |
@nicolascamilo Can you share with us the contents of
@bcmills If the corrupted file is |
Per the original issue description:
So I think the scenario here is “local power cut with a non-journaled filesystem”, which I assume is beyond our threat model for the sumdb... |
Fair enough, totally fine to delete here. I am a bit reticent to have us delete it automatically because we wouldn't hear about other ways it might go corrupt. Let's punt on it until the next time? |
Ok. Putting on hold until / unless we get more reports. |
Tried that already, nothing happens.
This is the result:
Update: Apparently is working right now. I'd love to provide more information but I have no actually clue what I've done, but I guess it was my problem and not something you guys have to solve. I can't use Again, I'm deeply sorry for I can't provide any new hint about this problem. |
Deleting the file named latest worked for me! |
Can you share what error you were seeing? |
Hi, Not sure, if it helps, but was facing the same issue, the following steps actually resolved the issue for me (Windows 10 - go version go1.14.4 windows/amd64) The file %GOPATH%\pkg\sumdb\sum.golang.org\latest did not exist when I was got this error Steps:
|
Thanks @mreddimasi . I met this issue, and this does solve the issue. |
Thanks @mreddimasi . I also got the same error and your solution helped me. |
For what it's worth, I'll add that I similarly had a power outage (as in, my PC at some point deadlocked on all processes, Go or otherwise, including in the middle of a
I'm also running on Windows, in case it's relevant. Apologies if this new error deserves a separate issue; this seemed relevant enough to me to warrant adding to this issue, but I'm also rather new to Go. |
This comment was marked as duplicate.
This comment was marked as duplicate.
Tools environment: GOPATH=D:\GitHub\PCS\Go Installing golang.org/x/tools/cmd/goimports@latest FAILED 1 tools failed to install. goimports: failed to install goimports(golang.org/x/tools/cmd/goimports@latest): Error: Command failed: C:\Program Files\Go\bin\go.exe install -v golang.org/x/tools/cmd/goimports@latest — sum.golang.org Az3grlA0jMpae7qUTMsKqrrNGa13uOqrsqFDLTaJvwDkqP6o5xs0BVMg2MXehnc4SKEt6Ksl8vLy5V5abSpF0GF53AI= |
This solved the issue for me ... C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>type D:\GitHub\PCS\Go\pkg\sumdb\sum.golang.org\latest ΓÇö sum.golang.org Az3grlA0jMpae7qUTMsKqrrNGa13uOqrsqFDLTaJvwDkqP6o5xs0BVMg2MXehnc4SKEt6Ksl8vLy5V5abSpF0GF53AI= C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>del D:\GitHub\PCS\Go\pkg\sumdb\sum.golang.org\latest C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional>go install golang.org/x/tools/cmd/goimports@latest |
when i go the same error, this worked for me: |
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?
I'm trying to use go mod tidy command. Since my computer turned off because of a blackout it never worked again
What did you expect to see?
Succesful go.mod file
What did you see instead?
For every project and import I'm seeing this error:
I know I just copied 2 libraries, but It's happening with every one
The text was updated successfully, but these errors were encountered: