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