草庐IT

google-app-engine - 我真的对导入所需的包感到困惑,但它的所有文件都被 nobuild_files 排除了

我安装了最新的工具,在app.go我有以下导入"github.com/go-martini/martini""github.com/martini-contrib/binding""github.com/martini-contrib/render""github.com/moovweb/gokogiri""github.com/moovweb/gokogiri/xml"并且在app.yamlapplication:appversion:1runtime:goapi_version:go1handlers:-url:/.*script:_go_app我使用godepsave工具保存了外

google-app-engine - 我真的对导入所需的包感到困惑,但它的所有文件都被 nobuild_files 排除了

我安装了最新的工具,在app.go我有以下导入"github.com/go-martini/martini""github.com/martini-contrib/binding""github.com/martini-contrib/render""github.com/moovweb/gokogiri""github.com/moovweb/gokogiri/xml"并且在app.yamlapplication:appversion:1runtime:goapi_version:go1handlers:-url:/.*script:_go_app我使用godepsave工具保存了外

build - "no godep, using go get instead"即使我运行了 "go get github.com/tools/godep"

我正在尝试构建syncthing:$./build.shWarning:nogodep,using"goget"instead.Try"gogetgithub.com/tools/godep".虽然只是一个警告,但我想让它消失。按照消息的建议,我运行了:gogetgithub.com/tools/godep但是即使这样做了,还是出现同样的错误。我的$GOPATH/bin包含一个名为godep的可执行文件。如何解决这个警告?Ubuntu2013.10go版本go1.1.2linux/amd64更新:我刚刚意识到这个警告是由build.sh本身生成的,所以问题可能比我想象的更局限。

build - "no godep, using go get instead"即使我运行了 "go get github.com/tools/godep"

我正在尝试构建syncthing:$./build.shWarning:nogodep,using"goget"instead.Try"gogetgithub.com/tools/godep".虽然只是一个警告,但我想让它消失。按照消息的建议,我运行了:gogetgithub.com/tools/godep但是即使这样做了,还是出现同样的错误。我的$GOPATH/bin包含一个名为godep的可执行文件。如何解决这个警告?Ubuntu2013.10go版本go1.1.2linux/amd64更新:我刚刚意识到这个警告是由build.sh本身生成的,所以问题可能比我想象的更局限。

heroku - Go 应用程序的依赖项未通过 Heroku 上的 godep 安装

我想在Heroku上部署Go应用程序,但出现如下错误:remote:----->Goappdetectedremote:----->CheckingGodeps/Godeps.jsonfile.remote:----->Usinggo1.6.3remote:!!Installingpackage'.'(default)remote:!!remote:!!remote:----->Running:goinstall-v-tagsheroku.remote:main.go:9:2:cannotfindpackage"github.com/go-martini/martini"inanyof

heroku - Go 应用程序的依赖项未通过 Heroku 上的 godep 安装

我想在Heroku上部署Go应用程序,但出现如下错误:remote:----->Goappdetectedremote:----->CheckingGodeps/Godeps.jsonfile.remote:----->Usinggo1.6.3remote:!!Installingpackage'.'(default)remote:!!remote:!!remote:----->Running:goinstall-v-tagsheroku.remote:main.go:9:2:cannotfindpackage"github.com/go-martini/martini"inanyof

git - 使用本地包的 Godep

我有一个看起来像这样的存储库:src||--myplace|--myprojectRepo|--someCmd|main.go|--somePackage|package.go我正在尝试使用Godeps来管理依赖项。但是,当我在someCmd文件夹中运行godepsave时,它不仅将外部代码复制到godep_workspace中,而且还复制了somePackage代码放入godep_workspace。有没有办法阻止godep将同一存储库中的代码复制到它的_workspace中?我看到的主要问题是现在有两个版本的somePackage.go。一个在somePackage目录中,一个在g

go - 无法通过 godep update ... 命令和 godep save -r ./更新 vendor deps

我的$GOPATH中有最新的deps。现在我想通过调用godepupdate./...然后调用godepsave./...用新的deps(最新的GOPATH)更新我的项目Godeps.json>。但是我仍然在Godeps.json中与老部门在一起。 最佳答案 确保你有要更新的git提交包,你可以使用gitlog检查提交sha-1校验和,并确保它在Godeps.json中有不同的rev提交版本。然后在godep命令中包含包名godepupdategithub.com/package/...

go - 在 Travis CI 自动构建 Go 的提示版本上使用 Godep 时出错

我正在使用TravisCI对我的Go项目进行自动化构建和测试。./Godeps/Godeps.json看起来像这样:{"ImportPath":"github.com/my_project_path","GoVersion":"go1.5","Packages":["./..."],"Deps":[{"ImportPath":"github.com/Sirupsen/logrus","Comment":"v0.8.7-53-g446d1c1","Rev":"446d1c146faa8ed3f4218f056fcd165f6bcfda81"}]}.travis.yml文件如下所示:lan

go - 如何将包添加到 godeps

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