主要版本应该是v0或v1,而不是v11。

huangapple go评论95阅读模式
英文:

Major version should be v0 or v1, not v11

问题

我正在尝试将这个包包含在我的项目中:https://github.com/0xProject/0x-mesh/tags

这里的版本明确指定为v11.2.0、v11.1.0等等。

然而,当我尝试使用go get命令时,我遇到了这个错误:

bash$ go get github.com/0xProject/0x-mesh@v11.2.0
go get: github.com/0xProject/0x-mesh@v11.2.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v11

为什么会发生这种情况?有11.2.0和其他版本的标签和发布。那为什么不行呢?
我能够使用go get命令获取的最高版本是v7.1.0-beta+incompatible,它可以正常工作,但是在v7之上就不行了,为什么会这样?此外,Github上是否有一个清晰的列表,指示哪些版本可以使用go get命令获取,哪些不能?

英文:

I am trying to include this package in my project: https://github.com/0xProject/0x-mesh/tags

Here the versions are clearly specified as v11.2.0, v11.1.0 and so on.

However when I am trying to go get it, I get this error:

bash$ go get github.com/0xProject/0x-mesh@v11.2.0
go get: github.com/0xProject/0x-mesh@v11.2.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v11

Why is this happening? There are tags with 11.2.0 and Releases too. So, why not?
The maximum version I can get with go get is v7.1.0-beta+incompatible, it works fine, but above v7 I can't, why is that? Also, is there a clear list on Github that would indicate which versions can be go get-ted and which can't?

答案1

得分: 2

在将包添加到项目中时,基于 pkg.go.dev 上的版本。包的版本为 Version: v1.0.7。请查看:

pkg.go.dev/github.com/0xProject/0x-mesh

英文:

When including packages to the project, it is based on the version at pkg.go.dev. The package version Version: v1.0.7. Check it out:

> pkg.go.dev/github.com/0xProject/0x-mesh

huangapple
  • 本文由 发表于 2022年1月26日 10:05:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/70857928.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定