gpt4 book ai didi

go - 特拉维斯 CI + 去 : can't build

转载 作者:IT王子 更新时间:2023-10-29 02:14:21 26 4
gpt4 key购买 nike

我的 .travis.yml是:

language: go
go:
- 1.5
install:
- go get github.com/tools/godep
- godep restore
branches:
only:
- master
script:
- go build example/myproduct/deployer/deployer.go
notifications:
email: false

it failed出现此错误:

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 where it's ok :

go get github.com/tools/godep
cd /opt/gopath/src/github.com/dorzheh/deployer
godep restore
ln -s /opt/gopath/src/github.com/dorzheh/deployer/example/myproduct/ /home/vagrant/example
cd /home/vagrant/
go build /home/vagrant/example/deployer/deployer.go

最佳答案

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

关于go - 特拉维斯 CI + 去 : can't build,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37218885/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com