2021
06-09
06-09
go mod 使用私有gitlab群组的解决方案
由于go对私有gitlab的仓库支持不好,得使用下面这些步骤设置git使用ssh协议gitconfig--globalurl."git@gitlab.com:".insteadOfhttps://gitlab.com/添加sshkey到gitlabssh-keygen会生成id_rsa.pubcat~/.ssh/id_rsa.pub粘贴到gitlab右上角头像Setting->SSHkeys,或者打开链接https://gitlab.com/profile/keys修改go.mod添加replacegitlab.com/YourGroup/SubGroup/Project=>gitlab.com/YourGroup/SubGroup/Proje...
继续阅读 >