session icon indicating copy to clipboard operation
session copied to clipboard

go mod import error

Open edieruby opened this issue 5 years ago • 7 comments

go mod download get the error require github.com/go-session/session: version "v3.1.3" invalid: module contains a go.mod file, so major version must be compatible: should be v0 or v1, not v3.

edieruby avatar Jun 11 '20 02:06 edieruby

Thanks!Has been update releated dependency,try again!

LyricTian avatar Jun 11 '20 06:06 LyricTian

sorry still not work. need to create a v3 fold or create a v3 branch? or change the go.mod , change the module to xxx/v3 ? https://github.com/golang/go/issues/35732

https://github.com/go-pg/pg. this uses the different branch

edieruby avatar Jun 11 '20 06:06 edieruby

Still the same

kevincobain2000 avatar Dec 03 '21 04:12 kevincobain2000

Can you please have a look into it? I think you need to update the go.mod file for any versions that are >= 2 Thanks

kevincobain2000 avatar Dec 03 '21 05:12 kevincobain2000

Hi @LyricTian - Would you be able to push the new /v3 in the go.mod?

kevincobain2000 avatar Dec 09 '21 10:12 kevincobain2000

Hi @LyricTian - Would you be able to push the new /v3 in the go.mod?

done, try it.

LyricTian avatar Dec 09 '21 23:12 LyricTian

Thanks @LyricTian I have confirmed, I am able to install it. In order to use it with the stores such as github.com/go-session/redis, I have added replace in the go.mod

replace github.com/go-session/session => github.com/go-session/session/v3 v3.1.5

All good so far! Thanks again.

kevincobain2000 avatar Dec 10 '21 01:12 kevincobain2000