go get github.com/astaxie/beego
# cd .; git clone https://github.com/astaxie/beego /home/weijiaxiang/tmp/tmp_lib/privateline/temp/src/github.com/astaxie/beego
Initialized empty Git repository in /home/weijiaxiang/tmp/tmp_lib/privateline/temp/src/github.com/astaxie/beego/.git/
error:  while accessing https://github.com/astaxie/beego/info/refs

fatal: HTTP request failed
package github.com/astaxie/beego: exit status 128

首先 go get 的原理就是git clone 。我在装beego的时候总是出现这个问题。

解决方法一: 升级 git。

解决方法二:

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

然后再执行 go get github.com/astaxie/beego

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐