问题1:glide install | unable to checkout golang.org/x/crypto | Cannot detect VCS
解决方法:glide mirror set https://golang.org/x/crypto https://github.com/golang/crypto --vcs git
生成的mirrors.yaml 存储在用户目录.glide文件夹下
问题2:glide install| unable to export dependencies to vendor directory:Error moving files:exit status1,output:...
解决方法:修改masterminds/glide/path/winbug.go CustomRename函数
//cmd := exec.Command("cmd.exe", "/c", "move", o, n)
cmd := exec.Command("cmd.exe","/c","xcopy /s/y",o,n+"\\")
详情参考:https://studygolang.com/articles/12085?fr=sidebar
有疑问加站长微信联系(非本文作者)