seefan / gossdb

ssdb client for go with pool surport
MIT License
131 stars 47 forks source link

tag version 应当为 v1.2.3 格式,以便兼容go mod #63

Closed RelicOfTesla closed 3 years ago

RelicOfTesla commented 3 years ago

现在tag 是v2.0,go mod不会认。。请使用v2.0.0格式

RelicOfTesla commented 3 years ago

不知道为啥 goproxy都没有刷到最新的tag。。。。 https://goproxy.cn/github.com/seefan/gossdb/@v/list (或者换官方的也一样)

RelicOfTesla commented 3 years ago
go env -w GOPROXY=direct
go get -u github.com/seefan/gossdb@v2.0.0

go get github.com/seefan/gossdb@v2.0.0: github.com/seefan/gossdb@v2.0.0: invalid version: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v2
RelicOfTesla commented 3 years ago

查了下,是go.mod得改掉,才能支持>=2.0以上的tag

方法1,go.mod,同时代码里的import也得带上v2

module github.com/seefan/gossdb/v2
seefan commented 3 years ago

调整了配置