首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >go mod供应商不应该有@版本错误

go mod供应商不应该有@版本错误
EN

Stack Overflow用户
提问于 2022-04-26 06:37:34
回答 2查看 1.4K关注 0票数 5

升级到go 1.18.1之后,go mod vendor返回一系列错误:

代码语言:javascript
复制
$ go mod vendor
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1/spew: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/davecgh/go-spew@v1.1.1/spew" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/dustin/go-humanize@v1.0.0: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/dustin/go-humanize@v1.0.0" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/dustin/go-humanize@v1.0.0/english: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/dustin/go-humanize@v1.0.0/english" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/eknkc/amber@v0.0.0-20171010120322-cdade1c07385: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/eknkc/amber@v0.0.0-20171010120322-cdade1c07385" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/eknkc/amber@v0.0.0-20171010120322-cdade1c07385/amberc: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/eknkc/amber@v0.0.0-20171010120322-cdade1c07385/amberc" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/eknkc/amber@v0.0.0-20171010120322-cdade1c07385/parser: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/eknkc/amber@v0.0.0-20171010120322-cdade1c07385/parser" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/jmespath/go-jmespath@v0.0.0-20180206201540-c2b33e8439af: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/jmespath/go-jmespath@v0.0.0-20180206201540-c2b33e8439af" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/jmespath/go-jmespath@v0.0.0-20180206201540-c2b33e8439af/cmd/jpgo: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/jmespath/go-jmespath@v0.0.0-20180206201540-c2b33e8439af/cmd/jpgo" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/jmespath/go-jmespath@v0.0.0-20180206201540-c2b33e8439af/fuzz: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/jmespath/go-jmespath@v0.0.0-20180206201540-c2b33e8439af/fuzz" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/joho/godotenv@v1.3.0: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/joho/godotenv@v1.3.0" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/joho/godotenv@v1.3.0/autoload: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/joho/godotenv@v1.3.0/autoload" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/joho/godotenv@v1.3.0/cmd/godotenv: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/joho/godotenv@v1.3.0/cmd/godotenv" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/klauspost/pgzip@v1.2.5: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/klauspost/pgzip@v1.2.5" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.2-0.20191112051448-a8912a37f9e7: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.2-0.20191112051448-a8912a37f9e7" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.2-0.20191112051448-a8912a37f9e7/cmd/zglob: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.2-0.20191112051448-a8912a37f9e7/cmd/zglob" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.2-0.20191112051448-a8912a37f9e7/fastwalk: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.2-0.20191112051448-a8912a37f9e7/fastwalk" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.3: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.3" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.3/cmd/zglob: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.3/cmd/zglob" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.3/fastwalk: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/mattn/go-zglob@v0.0.3/fastwalk" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/nfnt/resize@v0.0.0-20180221191011-83c6a9932646: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/nfnt/resize@v0.0.0-20180221191011-83c6a9932646" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/pkg/errors@v0.9.1: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/pkg/errors@v0.9.1" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0/difflib: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/pmezard/go-difflib@v1.0.0/difflib" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/satori/go.uuid@v1.2.1-0.20181028125025-b2ce2384e17b: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/satori/go.uuid@v1.2.1-0.20181028125025-b2ce2384e17b" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/tylerb/graceful@v1.2.15: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/tylerb/graceful@v1.2.15" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/tylerb/graceful@v1.2.15/tests: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/tylerb/graceful@v1.2.15/tests" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/urfave/negroni@v1.0.0: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/github.com/urfave/negroni@v1.0.0" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/assert.v1@v1.2.1: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/assert.v1@v1.2.1" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/non-standard/validators: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/non-standard/validators" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/en: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/en" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/fr: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/fr" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/id: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/id" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/ja: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/ja" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/nl: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/nl" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/pt_BR: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/pt_BR" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/zh: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/zh" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/zh_tw: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/go-playground/validator.v9@v9.29.1/translations/zh_tw" should not have @version
bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/unrolled/render.v1@v1.0.0: import path "bitbucket.org/jigspace/jigpipeline/lib/go/pkg/mod/gopkg.in/unrolled/render.v1@v1.0.0" should not have @version

用1.17.9就行了。我该怎么办?

EN

回答 2

Stack Overflow用户

发布于 2022-04-27 21:47:50

我删除了lib/go目录,现在它开始工作了。

票数 0
EN

Stack Overflow用户

发布于 2022-11-05 20:05:46

只需添加-e到整齐命令,以忽略错误

代码语言:javascript
复制
go mod tidy -e
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72009364

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档