dongtaoxue4674 2016-10-08 20:48
浏览 76
已采纳

travis go错误“命令“ eval go get -t -v./…”失败”

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

which has this line:

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

but it fails - with

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

(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?

  • 写回答

1条回答 默认 最新

  • doucou1892 2016-10-08 21:27
    关注

    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
    

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

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 fluent的在模拟压强时使用希望得到一些建议
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用
  • ¥15 Web.config连不上数据库
  • ¥15 我想付费需要AKM公司DSP开发资料及相关开发。
  • ¥15 怎么配置广告联盟瀑布流
  • ¥15 Rstudio 保存代码闪退