【问题标题】:Golang Revel freezes when download gopkg.in/fsnotify.v1下载 gopkg.in/fsnotify.v1 时,Golang Revel 冻结
【发布时间】:2017-01-17 06:22:33
【问题描述】:

我使用的是 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 中的文件被拉取就好了。我已经确定我能够卷曲到http://gopkg.inhttps://gopkg.in,所以它看起来不像是 SSLv3 问题。

有什么想法吗?

【问题讨论】:

  • 问题已解决:git 是旧版本。我已经尝试了一切,但没有启用 rpmforge;默认的 CentOS 基础存储库是 1.7.1。我升级了 git 并从源代码编译 - 用于 sh*ts 和咯咯笑 - 瞧。固定的。天哪!

标签: go revel


【解决方案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 用于详细模式)

【讨论】:

    猜你喜欢
    • 2018-08-29
    • 1970-01-01
    • 2015-01-14
    • 2022-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多