doubi5520 2019-09-09 12:52
浏览 161

ci / cd中断go get测试

I'm trying to prebuild docker image so that my ci/cd pipeline would go much faster and there is problem with go

I have tried reseting cache and change env variables but no one worked for me

Fetching https://git.dar.kz/forte-market/domain?go-get=1
Fetching https://gopkg.in/olivere/elastic.v5?go-get=1
go: finding github.com/sirupsen/logrus v1.4.2
go: finding github.com/modern-go/reflect2 v1.0.1
go: finding github.com/xanzy/go-gitlab v0.20.1
go: finding github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: finding github.com/tealeg/xlsx v1.0.3
go: finding github.com/gorilla/mux v1.7.3
go: finding github.com/prometheus/client_golang v1.1.0
go: finding github.com/satori/go.uuid v1.2.0
Parsing meta tags from https://gopkg.in/olivere/elastic.v5?go-get=1 (status code 200)
get "gopkg.in/olivere/elastic.v5": found meta tag get.metaImport{Prefix:"gopkg.in/olivere/elastic.v5", VCS:"git", RepoRoot:"https://gopkg.in/olivere/elastic.v5"} at https://gopkg.in/olivere/elastic.v5?go-get=1
go: finding gopkg.in/olivere/elastic.v5 v5.0.82
Parsing meta tags from https://git.dar.kz/forte-market/domain?go-get=1 (status code 200)
get "git.dar.kz/forte-market/domain": found meta tag get.metaImport{Prefix:"git.dar.kz/forte-market/domain", VCS:"git", RepoRoot:"https://git.dar.kz/forte-market/domain.git"} at https://git.dar.kz/forte-market/domain?go-get=1
go: finding git.dar.kz/forte-market/domain v1.2.0
go: git.dar.kz/forte-market/domain@v1.2.0: unknown revision v1.2.0
go: finding github.com/go-kit/kit v0.9.0
go: finding github.com/djumanoff/amqp v1.0.4
Fetching https://git.dar.kz/forte-market/acl?go-get=1
Parsing meta tags from https://git.dar.kz/forte-market/acl?go-get=1 (status code 200)
get "git.dar.kz/forte-market/acl": found meta tag get.metaImport{Prefix:"git.dar.kz/forte-market/acl", VCS:"git", RepoRoot:"https://git.dar.kz/forte-market/acl.git"} at https://git.dar.kz/forte-market/acl?go-get=1
go: finding git.dar.kz/forte-market/acl v1.0.4
go: finding github.com/sony/sonyflake v1.0.0
go: git.dar.kz/forte-market/acl@v1.0.4: unknown revision v1.0.4
go: finding github.com/caarlos0/env v3.5.0+incompatible
go: finding github.com/gocql/gocql v0.0.0-20190829130954-e163eff7a8c6
go: finding github.com/lestrrat-go/libxml2 v0.0.0-20190724003929-faf2a4a99869
go: error loading module requirements
ERROR: Job failed: exit code 1
  • 写回答

2条回答 默认 最新

  • dongxiatuo9827 2019-09-09 19:06
    关注

    go get can't find some packages:

    go: git.dar.kz/forte-market/acl@v1.0.4: unknown revision v1.0.4
    go: git.dar.kz/forte-market/domain@v1.2.0: unknown revision v1.2.0
    

    You need to make sure your CI can access these.

    If you're using go 1.13, go get tries to load these from proxy.golang.org first, and then "the old way". You can learn more about this here: https://golang.org/doc/go1.13#tools

    评论

报告相同问题?

悬赏问题

  • ¥15 深度学习根据CNN网络模型,搭建BP模型并训练MNIST数据集
  • ¥15 lammps拉伸应力应变曲线分析
  • ¥15 C++ 头文件/宏冲突问题解决
  • ¥15 用comsol模拟大气湍流通过底部加热(温度不同)的腔体
  • ¥50 安卓adb backup备份子用户应用数据失败
  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试,帮帮忙吧
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建