下载gopkg.in/fsnotify.v1时,Golang Revel冻结 [英] Golang Revel freezes when download gopkg.in/fsnotify.v1

查看:89
本文介绍了下载gopkg.in/fsnotify.v1时,Golang Revel冻结的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用CentOS7;尝试下载golang 1.5.1二进制文件以及yum install golang,并在安装revel时遇到了同样的问题.去工作正常;当我执行go version时,它会显示正确的版本.

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.

当我键入go get -v github.com/revel/revel时,一些软件包会很好的下载....,直到它被fsnotify为止.然后我得到以下输出:

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:

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/fsnotify中. src/github.comsrc/golang.org中的文件可以很好地拉出.我已经确保可以将 http://gopkg.in

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.

有什么想法吗?

推荐答案

升级Git,使其大于1.7.1(最新的CentOS基本版本).首先尝试rpmforge;如果不起作用,请从源代码进行编译:

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

我使用的是Git 2.6.2,现在可以正常工作:go get -v github.com/revel/revel(详细模式为-v)

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

这篇关于下载gopkg.in/fsnotify.v1时,Golang Revel冻结的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆