用go mod的时候应该会遇到无法拉取私有仓库的问题
go mod私有仓库拉取问题
从你gitlab平台生成一个token,在~/.gitcoinfig中
[http]下增加extraheader = PRIVATE-TOKEN: 你的token
[url]下增加 insteadOf = https://gitlab.你的gitlab服务器.com

如果还不生效则增加环境变量后尝试:
export GOPRIVATE=gitlab.你的gitlab服务器.cn

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-11-28
  • 2022-02-09
  • 2021-06-24
  • 2022-03-07
猜你喜欢
  • 2021-06-07
  • 2021-08-23
  • 2022-02-03
  • 2021-11-10
  • 2021-05-31
  • 2022-01-30
  • 2022-12-23
相关资源
相似解决方案