go - Jenkins GO 运行失败,出现 git 128
问题描述
伙计们,我正在尝试运行一些 go 测试。似乎是盒子上的 git 配置失败?
git version 1.8.3.1
在有人问之前就跑了……去版本1.13.1
在我的 mac 和 linux 上为我本地构建传递...但在 Jenkins 中似乎失败了
go test -v ./... -tags=unit
go: bitbucket.org/xxxxxxx/yyyyyyy@v1.0.82 requires
cloud.google.com/go/storage@v1.6.0 requires
cloud.google.com/go@v0.53.0 requires
cloud.google.com/go/bigquery@v1.3.0 requires
golang.org/x/exp@v0.0.0-20191030013958-a1ab85dbe136: invalid version: git fetch --unshallow -f https://go.googlesource.com/exp in /var/lib/jenkins/go/pkg/mod/cache/vcs/879ce674f4d9f0a3a3f207a6503e782bb2113f1a3d0c1f8049cc523b96d9aa9e: exit status 128:
fatal: git fetch-pack: expected shallow list
make[1]: *** [unit-test] Error 1
make[1]: Leaving directory `/var/lib/jenkins/workspace/xxxxxx/yyyyy'
make: *** [test] Error 2
Build step 'Execute shell' marked build as failure
[Slack Notifications] found #1 as previous completed, non-aborted build
[Slack Notifications] will send OnEveryFailureNotification because build matches and user preferences allow it
Finished: FAILURE
解决方案
解决方法很简单,git
在 GCP 中升级版本
推荐阅读
- arrays - 使用 size_t 运算符的数组的增量值
- java - “java.io.IOException:连接超时”VS HttpTimeoutException 在 java 11 HTTP 客户端
- python - numpy @njit 无法确定 Numba 类型
- javascript - SyntaxError: (node:3680) ExperimentalWarning: ESM 模块加载器是实验性的
- ios - 在 DateFormatter (Swift) 中计算值
- c# - 不支持提供的 ContentType;支持的类型是 blazor 中的“应用程序/json”
- google-play-console - 如何检查旧版本应用程序的用户数量?
- python - TypeError:只能将列表(不是“str”)连接到列表 -
- node.js - req.body 在 POST 请求中返回空数组
- python-3.x - 散景应用程序:Windows cmd 中没有反馈