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

    评论

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!