Golang Revel在下载gopkg.in/fsnotify.v1时会冻结。

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

Golang Revel freezes when download gopkg.in/fsnotify.v1

问题

我正在使用CentOS7;尝试下载golang 1.5.1二进制文件和yum install golang,并在安装revel时遇到相同的问题。Go工作正常;当我输入go version时,它显示正确的版本。

当我输入go get -v github.com/revel/revel时,一些包可以正常下载...直到遇到fsnotify。然后我得到以下输出:

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

然后它就卡住了。无论我尝试什么,它都不会下载任何内容到src/gopkg.in/fsnotifysrc/github.comsrc/golang.org中的文件可以正常获取。我已经确保我能够curl到http://gopkg.in和https://gopkg.in,所以看起来不像是SSLv3的问题。

有什么想法吗?

英文:

I'm using CentOS7; tried downloading the golang 1.5.1 binary and also yum install golang, and run into the same problem installed revel. Go works fine; when I do go version it displays the proper version.

When I type go get -v github.com/revel/revel, a few packages download just fine.... until it gets to fsnotify. Then I get this output:

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

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

And it just freezes. No matter what I try, it doesn't download anything into src/gopkg.in/fsnotify. Files in src/github.com and src/golang.org are pulled just fine. I already made sure I'm able to curl into http://gopkg.in and https://gopkg.in, so it doesn't look like an SSLv3 issue.

Any ideas?

答案1

得分: 1

升级Git,使其版本大于1.7.1(最新的CentOS基础版本)。首先尝试使用rpmforge;如果不起作用,则从源代码编译:https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-from-Source

我现在使用的是Git 2.6.2,它正常工作:go get -v github.com/revel/revel-v表示详细模式)。

英文:

Upgrade Git so that it is greater than 1.7.1 (latest CentOS base version). Try rpmforge first; if that doesn't work, compile from source: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git#Installing-from-Source

I'm on Git 2.6.2 and it's working fine now: go get -v github.com/revel/revel (-v for verbose mode)

huangapple
  • 本文由 发表于 2015年10月19日 03:36:59
  • 转载请务必保留本文链接:https://go.coder-hub.com/33202323.html
匿名

发表评论

匿名网友

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

确定