We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请简单描述bug的场景
go mod 引用时,版本号与module的path不匹配,导致无法引用v2.x.x的任何版本。
参考:https://github.com/golang/go/wiki/Modules#semantic-import-versioning,
The text was updated successfully, but these errors were encountered:
@qiluge 可以使用的,就是不显示正常的版本号, 会变成这个go.mod一样
或者你提供一下你的golang版本和执行的命令给我试试?
Sorry, something went wrong.
我直接引用 github.com/zouyx/agollo v0.0.0-20191114083447-dde9fc9f35b8之后,再使用 go mod tidy,go.mod里面会被直接修改为v1.9.0。然后我现在是这么用的
github.com/zouyx/agollo v0.0.0-20191114083447-dde9fc9f35b8
require github.com/zouyx/agollo v1.9.0 replace github.com/zouyx/agollo v1.9.0 => github.com/zouyx/agollo v0.0.0-20191114083447-dde9fc9f35b8
我的go version:go version go1.12.7 linux/amd64
go version go1.12.7 linux/amd64
我是输入了v2.2.1
require github.com/zouyx/agollo v2.2.1
使用go mod tidy,就变成了
require github.com/zouyx/agollo v0.0.0-20191114083447-dde9fc9f35b8
@qiluge 你用下面这个应该是可以的.
require github.com/zouyx/agollo v2.2.1+incompatible
好了,多谢!
zouyx
No branches or pull requests
请简单描述bug的场景
go mod 引用时,版本号与module的path不匹配,导致无法引用v2.x.x的任何版本。
参考:https://github.com/golang/go/wiki/Modules#semantic-import-versioning,
The text was updated successfully, but these errors were encountered: