当前位置:   article > 正文

atal: could not read Username for ‘https://gitlab.com‘: terminal prompts disabled_fatal: could not read username for terminal prompt

fatal: could not read username for terminal prompts disabled gitlab ci

Goland加载一个内部的包提示报错fatal: could not read Username for 'https://gitlab.com': terminal prompts disabled

按照网上的各种攻略,配置了

url.git@github.com:.insteadof=https://github.com/

并没有解决问题。

然后查看go相关配置,添加了如下配置:

  1. go env -w GOPRIVATE='*.jd.com'
  2. go env -w GOPROXY='https://goproxy.io,direct'

总结:

1.内部的包没有设置private,导致都去外部仓库去下载,当然找不到。

2.代理没有配置为国内代理。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/492554
推荐阅读
相关标签
  

闽ICP备14008679号