travis go error'命令“eval go get -t -v ./...”失败” [英] travis go error 'The command "eval go get -t -v ./..." failed'

查看:920
本文介绍了travis go error'命令“eval go get -t -v ./...”失败”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个非常简单的设置..
- 一个Travis.yml文件: https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml

I have a pretty straightforward setup.. - a Travis.yml file : https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml

其中包含以下内容:

before_script:
   - go get -u -v github.com/spf13/hugo

但它失败 - 带有

but it fails - with


eval go get -t -v。/ ...失败。重试,2/3。

The command "eval go get -t -v ./..." failed. Retrying, 2 of 3.

https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574
我找不出来。我看到语言设置正确 - 并且查看其他SO帖子的版本号是否正确。是否有我应该使用的不同版本?

(https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574) I can't figure it out. I see the language is set correctly - and looking at other SO posts the version number is correct. Is there a different version I should be using?

推荐答案

阅读这个 go get .... 是如果找不到makefile文件,默认就去构建脚本。

Read this, the go get .... is part of the default go build script on travis, if no makefile is found.

一个简单的解决方案可能是添加一个带有空配方

A simple solution may be to add a Makefile with an empty recipe

$ cat Makefile
target: ;
$ make && echo "ok"
make: « target » uptodate.
ok

因此,travis会将默认安装步骤设置为true,这应该避免得到

So travis will set the default install step to true, which should avoid the got get

这篇关于travis go error'命令“eval go get -t -v ./...”失败”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆