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

Can't install the go-session/redis anymore #2

Open
chrl opened this issue Jun 21, 2019 · 1 comment
Open

Can't install the go-session/redis anymore #2

chrl opened this issue Jun 21, 2019 · 1 comment

Comments

@chrl
Copy link

chrl commented Jun 21, 2019

Command:
go get -u -v github.com/go-session/redis

Actual result:

github.com/go-session/redis (download)
github.com/go-redis/redis (download)
github.com/go-session/session (download)
github.com/go-session/redis
# github.com/go-session/redis
../../../go/src/github.com/go-session/redis/options.go:75:3: cannot use o.Dialer (type func() (net.Conn, error)) as type func(context.Context, string, string) (net.Conn, error) in field value

Expected result:
go-session/redis is installed.

@snifferhu
Copy link

I think this issue cause by go-redis/redis had change the struct Options's function Dialer .
the old is
Dialer func() (net.Conn, error)
now is
Dialer func(ctx context.Context, network, addr string) (net.Conn, error)

I have 2 solutions.
remove local go-redis package, then go get github.com/go-redis/[email protected]

or, u can try this https://github.com/snifferhu/redis.
I fix this bug. waiting for author @LyricTian merge.

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

2 participants