2

go-micro安装错误处理

 2 years ago
source link: https://baorongquan.github.io/2018/04/18/go-micro%E5%AE%89%E8%A3%85%E9%94%99%E8%AF%AF%E5%A4%84%E7%90%86/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

go-micro 安装错误种的错误处理

按照github上micro的教程使用非docker方式安装的错误处理

go get -u github.com/micro/micro

会报关于 golang.org/x/crypto/acme/autocert 的错误。

  • 情况1:由于防火墙的原因导致连接网络失败。
  • 情况2:由于之前手动拷贝安装过crypto这个包会报使用一个未知的版本控制系统的错误

解决办法:

cd $GOPATH/src/golang.org/x/
git clone https://github.com/golang/crypto.git


1、不要手动下载然后拷贝过去,会报上述情况2的错误
2、之前手动拷贝过crypto的话,先备份或删除再git clone



About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK