命令" git config remote.origin.url" $ {_ old_remote%。git}""失败并在255期间退出

时间:2017-03-08 14:26:15

标签: git go intellij-idea travis-ci ubuntu-16.04

即使它在我的机器中编译并运行完美,但将其上传到github也没有问题,当我尝试使用travis-CI时(第一次)显示以下错误: (我只有2个外部依赖大猩猩/多路复用器和大猩猩/上下文,我从"获得")

$ export GOPATH=$HOME/gopath
$ export PATH=$HOME/gopath/bin:$PATH
$ mkdir -p $HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]
$ rsync -az ${TRAVIS_BUILD_DIR}/ $HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]/
$ export TRAVIS_BUILD_DIR=$HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]
/home/travis/build.sh: line 62: export: `github.com/gorilla/context]': not a valid identifier
$ cd $HOME/gopath/src/["github.com/gorilla/mux", "github.com/gorilla/context"]
error: could not lock config file .git/config: No such file or directory
The command "git config remote.origin.url "${_old_remote%.git}"" failed and exited with 255 during .
Your build has been stopped.

.travis.yml:

language: go
go:
  - 1.6.x
go_import_path:
  - github.com/gorilla/mux
  - github.com/gorilla/context
install:
  - github.com/gorilla/mux
  - github.com/gorilla/context
script:
  - go test -v ./...

我多次修改.travis.yml文件,我不知道有什么错误/缺失。

我有ProjectName / .git / config

的默认配置文件

我也有GO推荐目录设置GOPATH / src / github.com / User / ProjectName /

知道我做错了吗?

谢谢

0 个答案:

没有答案