为什么`go get`在Travis CI构建中会开始失败?

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

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

huangapple
  • 本文由 发表于 2016年1月8日 01:12:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/34661222.html
匿名

发表评论

匿名网友

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

确定