赞
踩
go get 命令
借助代码管理工具通过远程拉取或更新代码包及其依赖包,并自动完成编译和安装。整个过程就像安装一个 App 一样简单。
参数介绍:
1、cannot use path@version syntax in GOPATH mode
处理方法:需要开启 GO111MODULE
设置方法 export GO111MODULE="on"
2、
- go get github.com/panjf2000/gnet: github.com/panjf2000/gnet@v1.2.3: verifying module: checksum mismatch
- downloaded: h1:maJme8lnr4+S0BpEinvNVCcgW9E46HAcTx0WLvWToI0=
- sum.golang.org: h1:m0jNClfFns9ghBDoLxuST8js8GR5t2VmWA0DnztU06c=
-
- SECURITY ERROR
- This download does NOT match the one reported by the checksum server.
- The bits may have been replaced on the origin server, or an attacker may
处理方法:export GOSUMDB=off
下载完成后再设置回去 GOSUMDB="sum.golang.org"
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。