草庐IT

go - 如何将包添加到 godeps

我已经在github中有一个现有项目,并且在Godeps文件夹中存储了depsjson文件,在vendor文件夹中存储了依赖包。现在我需要一种方法来将新包添加到列表中,而不会对现有的json文件和vendor包文件夹产生任何影响 最佳答案 不要对抗工具。让godep更新您的json文件和vendor文件夹,无论它对您原始的Godeps/godeps.json文件有多大干扰。godeprestore//puteverythinginaknownstategoget-ufoo/bar//getnewpackagegotest./.../

heroku - 无法在 Heroku 上部署具有 Godeps 依赖项的 go 应用程序

当我试图在heroku上推送我的项目时出现以下错误gitpushherokumasterCountingobjects:88,done.Deltacompressionusingupto4threads.Compressingobjects:100%(86/86),done.Writingobjects:100%(88/88),18.85MiB|686.00KiB/s,done.Total88(delta13),reused0(delta0)remote:Compressingsourcefiles...done.remote:Buildingsource:remote:remote:

git - 我应该提交 Godeps/_workspace 还是 Godeps.json 就足够了?

我正在用Go编写一个项目以部署在heroku上,使用godep管理依赖项.当我godepsave时,我得到一个Godeps.json文件,其中列出了我的依赖项和版本,以及一个_workspace/目录和源对于复制的所有依赖项。我宁愿不提交_workspace,所有这些代码已经在github上的其他地方。似乎Godeps.json包含了我们在herokubuildpack时goget版本锁定依赖项所需的所有信息。Severalsources建议提交完整的Godeps/目录,但其他人建议这样做mightnotbenecessary.godep文档没有多大帮助:Thiswillsaveali