I cloned the repository onto my PC with SSH. I got an error on the first line of the go.mod
file. The line is similar to this: module: gitlab.com/mycorporation/mycompany/susrepo
The error I got when trying to run go mod tidy
is:
go: gitlab.com/mycorporation/mycompany/dat/go-kafkautil@v0.0.3: reading gitlab.com/mycorporation/mycompany/dat/go-kafkautil.git/go.mod at revision v0.0.3: git ls-remote -q origin in /home/sususer/go/pkg/mod/cache/vcs/9572610d568gv0dca638cbb8aaf8843db7465c89ce962998ae8516eb93beb2e3: exit status 128:
fatal: read error: Connection reset by peer
go: downloading gitlab.com/mycorporation/mycompany/dat/go-kafkautil.git v0.0.3
go: gitlab.com/mycorporation/mycompany/dat/go-kafkautil@v0.0.3: reading gitlab.com/mycorporation/mycompany/dat/go-kafkautil.git/go.mod at revision v0.0.3: git ls-remote -q origin in /home/sususer/go/pkg/mod/cache/vcs/9572610d568gv0dca638cbb8aaf8843db7465c89ce962998ae8516eb93beb2e3: exit status 128:
fatal: read error: Connection reset by peer
Even when I did not run run go mod tidy
, pointing the cursor to the mentioned first line gives similar error, with these additional text at the beginning: err: exit status 1: stderr: