英文:
"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 -->
>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)
(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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论