private repo - go 1.13 - `go mod ..` failed: ping “sum.golang.org/lookup” .. verifying package .. 410 gone

前端 未结 4 500
野性不改
野性不改 2021-02-03 21:11

I am using golang 1.13 .

I have a project that depends on a private gitlab project.

I have the ssh keys for the same.

When I try to retrieve the depen

4条回答
  •  [愿得一人]
    2021-02-03 21:48

    Change following go variable's setting and then upgrade your package,

    $ export GO111MODULE=on
    $ export GOPROXY=direct
    $ export GOSUMDB=off
    $ go get -u 
    

提交回复
热议问题