Skip to content
New issue

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

go mod import error #4

Closed
edieruby opened this issue Jun 11, 2020 · 7 comments
Closed

go mod import error #4

edieruby opened this issue Jun 11, 2020 · 7 comments

Comments

@edieruby
Copy link

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
Copy link
Member

Thanks!Has been update releated dependency,try again!

@edieruby
Copy link
Author

edieruby commented Jun 11, 2020

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 ?
golang/go#35732

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

@kevincobain2000
Copy link

Still the same

@kevincobain2000
Copy link

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
Copy link

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

@LyricTian
Copy link
Member

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

done, try it.

@kevincobain2000
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants