英文:
Why would `go get` start to fail in Travis CI build?
问题
我在一个通过Travis进行构建循环的存储库上打开了一个拉取请求。这里是失败的作业。我找不到一个好的理由,为什么特别是这个作业一直失败。我已经多次重新启动它,以查看是否是暂时的超时问题。核心错误是:The command "go get golang.org/x/tools/cmd/vet" failed and exited with 1 during .
。
完整日志在这里:https://gist.github.com/mjbrender/79e0343625038bce440a
Golang的vet
包是否有什么变化,我在这里看不到?还是这只是一个不稳定的过程?如果是的话,有没有改进构建过程的方法?
英文:
I opened a pull request on a repository that goes through a build cycle in Travis. The job failing is here. I cannot find a good reason why this job in particular continues to fail. I've restarted it multiple times to see if it was a temporary timeout. The core error is: The command "go get golang.org/x/tools/cmd/vet" failed and exited with 1 during .
Full log is here: https://gist.github.com/mjbrender/79e0343625038bce440a
Has something changed with Golang's vet
package that I don't see here? Or is this just a flaky process? If it is, is there a way of improving the build process?
答案1
得分: 0
看起来我不是唯一一个因为vet
导致构建失败的人:https://github.com/coreos/etcd/issues/4149
而且这个问题可以追溯到导入的变化。该软件包的团队已经回滚了导致go vet
在1.4.2版本中出错的变化:https://github.com/golang/tools/commit/da91609d887c6b1e28ad4548c47f3ff39a471989
自从更新了软件包,go get golang.org/x/tools/cmd/vet
现在可以正常工作了:https://travis-ci.org/intelsdi-x/snap/jobs/100709221
英文:
Looks like I wasn't alone in having vet
cause a broken build: https://github.com/coreos/etcd/issues/4149
And it traces back to a change in imports. The team behind the package rolled back the change that broke go vet
for 1.4.2: https://github.com/golang/tools/commit/da91609d887c6b1e28ad4548c47f3ff39a471989
go get golang.org/x/tools/cmd/vet
works now since that update to package: https://travis-ci.org/intelsdi-x/snap/jobs/100709221
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论