+
Skip to content

oaago/common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

由于go对私有gitlab的仓库支持不好,得使用下面这些步骤

设置git使用 ssh协议 git config --global url."git@github.com:".insteadOf "https://github.com/"

添加ssh key 到gitlab

ssh-keygen 会生成 id_rsa.pub cat ~/.ssh/id_rsa.pub 粘贴到gitlab 右上角头像 Setting -> SSH keys,或者打开链接https://gitlab.com/profile/keys 修改 go.mod 添加 replace github.com/oaago/common => github.com/oaago/common.git master

设置noproxy域名 go env -w GONOPROXY=**.github.com**

设置private域名 go env -w GOPRIVATE=**.github.com**

自己搭建的gitlab也是如此

git config --global url."git@github.com:".insteadOf "https://github.com/"

go install github.com/oaago/common@main

请把示例写在demo里面

go env -w GOPRIVATE=**github.com**

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载