Closed ydnar closed 5 years ago
Hi.
I haven't moved anything recently. Is there a command I can run to reproduce the problem?
From the error message, it looks like it might've been a transient network error. Have you tried restarting your build?
This happened last night on my MacBook—I assumed it was a transient network error and tried again this morning. I got the same error.
I just re-ran it from a new network (including a VPN), and it failed with the same error. I checked my .gitconfig
and there’s nothing in it that should affect accessing git on your host.
I upgraded git and got the same error.
What was the command you ran?
go get
.
Just tried deleting the cache directory, and that seemed to fix it:
rm -rf /Users/ydnar/go/pkg/mod/cache/vcs/6337fe80c0c5be37685948ddcad19803db757c3ff59a7275f1d6cbb32466323d
Odd—haven’t seen this before.
I was going to suggest trying with an empty module cache directory. Glad to hear that fixes it.
You wouldn't have by any chance made a backup of that directory? If so, if you don't mind sharing a copy so I can reproduce the original problem, I'd like to be able to investigate what was causing it. If you no longer have a copy, that's okay, we can hope it was an old bug that's fixed in the newest version of Go.
I'll close this since the issue is resolved, but please feel free to re-open if it occurs again.
Our builds are broken with this error:
Did you move your modules off GitHub?