我有一个非常简单的设置..
- Travis.yml 文件:https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml https://github.com/openassistive/OpenATFrontEnd/blob/master/.travis.yml
其中有这一行:
before_script:
- go get -u -v github.com/spf13/hugo
但它失败了 - 与
命令“eval go get -t -v ./...”失败。重试,第 2 次,共 3 次。
(https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574 https://travis-ci.org/openassistive/OpenATFrontEnd/builds/166105574)
我想不通。我看到语言设置正确 - 并且查看其他 SO 帖子,版本号是正确的。我应该使用不同的版本吗?
Read this https://docs.travis-ci.com/user/languages/go#Dependency-Management, the go get ....
如果没有找到 makefile,则它是 travis 上默认 go build 脚本的一部分。
一个简单的解决方案可能是添加一个带有空食谱 https://www.gnu.org/software/make/manual/html_node/Empty-Recipes.html
$ cat Makefile
target: ;
$ make && echo "ok"
make: « target » uptodate.
ok
因此 travis 会将默认安装步骤设置为 true,这应该避免got get
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)