Golang通过go get github.com/astaxie/beego框架报错 error: while accessing https://github.com/astaxie/beego - Go语言中文社区

Golang通过go get github.com/astaxie/beego框架报错 error: while accessing https://github.com/astaxie/beego


在Centos6.4尝试搭建beego框架,使用git命令clone时报错

复制代码
# cd .; git clone https://github.com/astaxie/beego /www/project/src/github.com/astaxie/beego
Initialized empty Git repository in /www/project/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
复制代码

解决办法有三种

第一,升级git

第二,在github下载源码包放到对应目录

第三,命令修复

git config --global url."git://github.com/astaxie/beego".insteadOf "https://github.com/astaxie/beego"    //命令修复

执行完成之后,继续执行命令clone  :go get github.com/astaxie/beego

转自:https://www.cnblogs.com/wt645631686/p/9670314.html
版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/qq_28423997/article/details/88713335
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2019-09-04 17:02:35
  • 阅读 ( 2829 )
  • 分类:Go

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢