【发布时间】:2019-07-26 15:48:51
【问题描述】:
我正在尝试在 GitHub 上的 Go 项目中使用 CircleCI,并使用 Go 项目的默认模板。
作为参考,这是默认的.circleci/config.yml 看起来像:
version: 2
jobs:
build:
docker:
- image: circleci/golang:1.12.7-buster
working_directory: /go/src/github.com/Permaweb/Host
steps:
- checkout
- run: go get -t -u -v ./...
- run: go test -v ./...
作业运行时,我收到一个与代码本身完全无关的错误。
agent key RSA SHA256:L1iUIhjfKejEONe0TFU3TaWkNwE2O0xWF/09K7P8WnA returned incorrect signature type There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> If you wish to set tracking information for this branch you can do so with: git branch --set-upstream-to=origin/<branch> develop
错误发生在 CircleCI 上的 git pull 与 master 不同的分支上。
我该如何解决这个问题?
【问题讨论】:
-
我遇到了这个问题,因为我在 Windows 计算机上使用了 powershell。我的直接解决方法是从那里使用 WSL 和 SSH;但是,我确实发现了涉及更好解决方案的讨论/问题,例如在 Windows 上升级 SSH 客户端。见Win32-OpenSSH issue discussion
标签: git go circleci circleci-2.0