为了账号安全,请及时绑定邮箱和手机立即绑定

Travis CI + Go:无法构建

Travis CI + Go:无法构建

Go
凤凰求蛊 2022-01-10 16:26:51
我的.travis.yml是:language: gogo:  - 1.5install:  - go get github.com/tools/godep  - godep restorebranches:  only:  - masterscript:  - go build  example/myproduct/deployer/deployer.gonotifications:  email: false而且它没有与此错误:go build  example/myproduct/deployer/deployer.go    go install command-line-arguments: build output "deployer" already exists and is a directory    The command "go build  example/myproduct/deployer/deployer.go" exited with 1.    Done. Your build exited with 1.我有VagrantFile 可以的:go get github.com/tools/godepcd /opt/gopath/src/github.com/dorzheh/deployergodep restoreln -s  /opt/gopath/src/github.com/dorzheh/deployer/example/myproduct/ /home/vagrant/examplecd /home/vagrant/go build  /home/vagrant/example/deployer/deployer.go
查看完整描述

1 回答

?
摇曳的蔷薇

TA贡献1793条经验 获得超6个赞

查看https://github.com/weldpua2008/deployer,它确实deployer在根目录下有一个目录。当您发出时,go build  example/myproduct/deployer/deployer.go它会尝试创建一个名为deployer但失败的文件,因为该目录已经存在。


查看完整回答
反对 回复 2022-01-10
  • 1 回答
  • 0 关注
  • 133 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信