打印以下输出后,go get -v gopkg.in/urfave/cli.v2
挂起。不过,我可以安装其他包。如何调试导致此问题的根本原因?
这个已经挂了6个多小时了。必须按下cntrl+c键才能走出来。
$go get -v -insecure gopkg.in/urfave/cli.v2
Fetching https://gopkg.in/urfave/cli.v2?go-get=1
Parsing meta tags from https://gopkg.in/urfave/cli.v2?go-get=1 (status code 200)
get "gopkg.in/urfave/cli.v2": found meta tag main.metaImport{Prefix:"gopkg.in/urfave/cli.v2", VCS:"git", RepoRoot:"https://gopkg.in/urfave/cli.v2"} at https://gopkg.in/urfave/cli.v2?go-get=1
gopkg.in/urfave/cli.v2 (download)
发布于 2017-01-27 22:21:07
很可能是网络问题。当与ISP的连接遇到包丢失时,我们就出现了这种现象。
由于go get
使用git,您可以手动克隆存储库并查看git
告诉您的内容:
$ git clone --verbose https://gopkg.in/urfave/cli.v2
发布于 2017-01-27 23:08:27
事实证明,https://gopkg.in/urfave/cli.v2上没有源代码代码库。我不得不听从@路易斯的建议,自己克隆存储库。
mkdir -p $GOPATH/src/gopkg.in/urfave
cd $GOPATH/src/gopkg.in/urfave
git clone https://github.com/urfave/cli -b v2 cli.v2
注意:为作者https://github.com/urfave/cli/issues/591打开了一个问题
https://stackoverflow.com/questions/41895950
复制相似问题