获取GO语言的软件包

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

Getting packages for GO language

问题

下面的命令花费了很长时间,没有输出或任何反应,是否有其他方法来下载Go语言的软件包?我是Go语言的新手。

go get -u github.com/gogits/gogs/

附注:我的网络连接并不慢,通过git下载大约需要1分钟,但我不能为所有依赖项都单独执行该操作。

编辑1:像go get github.com/tools/godep这样的小型软件包可以无缺地下载和安装,我只在github.com/gogits/gogs/上遇到问题。它在那里卡了一个小时。即使有一个下载进度也会很有帮助。

英文:

The below command is taking ages with no output or anything, is there an alternative way to download packages for go language.? I am new to golang.

 go get -u github.com/gogits/gogs/

PS: my net connection is not that slow, downloading through git takes around 1 min, but i can't individually do that for all dependencies.

Edit 1: Small packages like go get github.com/tools/godep downloads and install flawlessly, i have the problem only with github.com/gogits/gogs/ . Its stuck there for an hour. Even a download progress would have been helpful.

答案1

得分: 2

"go get"命令正在工作,但对于具有大量依赖项的软件包来说速度非常慢。"-v"标志(文档中没有提到)帮助我获得了详细的输出,以了解正在发生的情况。

这个过程花了将近一个小时才完成。问题可能是由于GitHub或我的ISP(互联网服务提供商)。

开发人员应该将详细输出设置为默认选项。

对于我的英语不好,我感到抱歉。

英文:

go get command is working but its terribly slow for packages that have lots of dependencies. the -v flag(not in doc) helped me to get a verbose output of what is happening.

Took almost an hour to finish. Culprit might possibly be github or my ISP.
Verbose output should had made default by the developers.

*sorry for my English.

答案2

得分: -1

你可以使用GoDep,它是一个强大的Go依赖管理工具:https://github.com/tools/godep

GoDep还可以帮助你实现可预测的构建,因为它会冻结你应用程序中的依赖关系。
非常容易上手,只需按照其Github页面上的说明进行操作即可。

英文:

You can use GoDep which is a powerful Go dependency manager: https://github.com/tools/godep

GoDep also helps you to have a predictable build since it freezes dependencies in your app
Very easy to get started, just follow instruction on its Github page.

huangapple
  • 本文由 发表于 2015年12月20日 22:36:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/34382103.html
匿名

发表评论

匿名网友

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

确定