伙计们,我正在尝试进行一些测试。盒子上的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
最佳答案
解决方案很简单,在GCP中提高git
的版本
关于go - Jenkins GO运行失败,git 128,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60878331/