问题描述
我有一个非常简单的设置..
- 一个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
()
我找不出来。我看到语言设置正确 - 并且查看其他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 ./...”失败”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!