使用govendor,dh-make-golang构建Go 1.7项目时,要导入供应商依赖项问题

时间:2017-03-29 04:52:41

标签: go debian pbuilder govendor

我一直在考虑将一个go项目构建成debian包。

我调查了dh-make-golang,并且在我的存储库中设置了一个漂亮而有光泽的mymap[std::pair<char, std::string>('a', "Q1")] = "Q4"; mymap[std::pair<char, std::string>('b', "Q2")] = "Q3"; mymap[std::pair<char, std::string>('c', "Q3")] = "Q2"; mymap[std::pair<char, std::string>('d', "Q4")] = "Q1"; 文件夹。当我尝试使用debian时虽然由于找不到所有依赖项而导致错误。似乎gbp buildpackage --git-pbuilder在从项目的git存储库复制所有内容时忽略dh-make-golang文件夹,并且我使用vendor所以我的所有依赖项都在那里。

如何解决此依赖项问题并将项目正确地构建为govendor包?作为参考,我得到的错误是:

.deb

2 个答案:

答案 0 :(得分:1)

问题是android:onClick='@{(v) -> viewModel.subjectRequest(faqTitleAbout.getText())}' 中有关导入供应商依赖关系的错误。它今天刚刚修好。

https://github.com/Debian/dh-make-golang/issues/46

答案 1 :(得分:0)

看看goxc - 它可以为你做到这一点!

您只需要在目录的根目录中添加{ "AppName": "my_app", "ArtifactsDest": "downloads", "Tasks": [ "interpolate-source" "deb", ], "BuildConstraints": "linux,amd64 windows,amd64 darwin,amd64 linux,arm", "ResourcesInclude": "INSTALL*,README*,LICENSE*,config/*,static/*,templates/*", "PackageVersion": "0.9.3", "TaskSettings": { "deb": { "metadata": { "description": "my app", "maintainer": "me", "maintainer-email": "me@example.com" }, "metadata-deb": { "Homepage": "https://example.com" }, "other-mapped-files": { "/": "debian/", "/usr/share/something/static": "static/", "/usr/share/something/templates": "templates/" } } }, "ConfigVersion": "0.9" } ,如下所示

goxc

然后运行print n, " is the magic number",它将为您完成所有工作。