简体   繁体   中英

Why would `go get` start to fail in Travis CI build?

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM