git仓库gomod私有化
1: go module 私有仓库使用
1
2
3
4
5
6
7
8
9
10
11
12
13
|
(1) 修改hosts
(2)
go env -w GOINSECURE="gitlab.yuliangtec.cn"
go env -w GONOSUMDB="gitlab.yuliangtec.cn"
go env -w GONOPROXY="gitlab.yuliangtec.cn"
go env -w GOPRIVATE="gitlab.yuliangtec.cn"
// (3) go get
go get com.yuliangtec.luna.proto
// (4) git tag --> go get
go get com.yuliangtec.luna.proto@v1.0.0
|
2: 补充
2.1 协议
2.2 设置环境变量(上 1)
https://blog.csdn.net/L_K1028/article/details/105313293
https://blog.csdn.net/qingchuwudi/article/details/107119273
文章作者
lucas
上次更新
2022-03-15
(4b5aad2)