go-session / session

A efficient, safely and easy-to-use session library for Go.
https://godoc.org/github.com/go-session/session
MIT License
218 stars 40 forks source link

go mod import error #4

Closed edieruby closed 1 year ago

edieruby commented 4 years ago

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.

LyricTian commented 4 years ago

Thanks!Has been update releated dependency,try again!

edieruby commented 4 years ago

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

kevincobain2000 commented 2 years ago

Still the same

kevincobain2000 commented 2 years ago

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 commented 2 years ago

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

LyricTian commented 2 years ago

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

done, try it.

kevincobain2000 commented 2 years ago

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.