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

前端 未结 4 560
野性不改
野性不改 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:50

    I have this scenario too and this works for me.

    1. edit your .git/config and add two lines in it.( I have this in a global .gitconfig in home dir)
    [url "ssh://youprivate.com"]
         insteadOf = https://yourprivate.com
    
    1. export GOSUMDB=off

    Then everything will OK.

提交回复
热议问题