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 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘