使用私有仓库gitlab进行go依赖管理(go mod / go get)

// 编辑git配置文件 ~/.gitconfig
[url "git@gitlab.***.com:"]
    insteadOf = https://gitlab.***.com   

// 配置环境变量
GOPRIVATE=gitlab.***.com

// gitlab普通版本只能get2层
// 注意 common为gitlab的群组
gitlab.***.com/common/config  //称之为2层

// config 包的go.mod注意module名字
module gitlab.***.com/common/config

相关文章:

  • 2021-06-02
  • 2021-06-26
  • 2022-12-23
  • 2021-10-04
  • 2021-11-17
  • 2021-12-10
  • 2021-11-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2021-07-03
  • 2021-10-22
  • 2022-12-23
  • 2021-05-23
相关资源
相似解决方案