“go get”在某些库上挂起。

huangapple go评论63阅读模式
英文:

"go get" hanging on certain library

问题

我正在尝试获取这个 lumberjack 库,但它总是在下载步骤上卡住。

我上周五和今天都遇到了同样的问题。其他 Go 包都可以正常安装。我使用的是 Scientific Linux。有什么想法是怎么回事吗?

go get -u -v gopkg.in/natefinch/lumberjack.v2
Fetching https://gopkg.in/natefinch/lumberjack.v2?go-get=1
Parsing meta tags from https://gopkg.in/natefinch/lumberjack.v2?go-get=1 (status code 200)
get "gopkg.in/natefinch/lumberjack.v2": found meta tag main.metaImport{Prefix:"gopkg.in/natefinch/lumberjack.v2", VCS:"git", RepoRoot:"https://gopkg.in/natefinch/lumberjack.v2"} at https://gopkg.in/natefinch/lumberjack.v2?go-get=1
gopkg.in/natefinch/lumberjack.v2 (download)

(它卡在最后一行,到目前为止我已经让它运行了20分钟。)

英文:

I'm trying to get this lumberjack library and it always hangs on the download step.

I hit the same issue Friday and today. other Go packages install fine. I'm on Scientific Linux. Any ideas what could be going on?

<!-- language: lang-none -->

&gt;go get -u -v  gopkg.in/natefinch/lumberjack.v2
Fetching https://gopkg.in/natefinch/lumberjack.v2?go-get=1
Parsing meta tags from https://gopkg.in/natefinch/lumberjack.v2?go-get=1 (status code 200)
get &quot;gopkg.in/natefinch/lumberjack.v2&quot;: found meta tag main.metaImport{Prefix:&quot;gopkg.in/natefinch/lumberjack.v2&quot;, VCS:&quot;git&quot;, RepoRoot:&quot;https://gopkg.in/natefinch/lumberjack.v2&quot;} at https://gopkg.in/natefinch/lumberjack.v2?go-get=1
gopkg.in/natefinch/lumberjack.v2 (download)

(It hangs on last line, I've let it run for 20 minutes so far.)

答案1

得分: 5

感谢 @Jimb。将git升级到较新的版本解决了问题。

英文:

Thanks @Jimb. Upgrading git to a newer version fixed the issue.

huangapple
  • 本文由 发表于 2015年4月27日 20:34:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/29895951.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定