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 get install errors #12

Open
fhquthpdw opened this issue Jul 31, 2019 · 2 comments
Open

go get install errors #12

fhquthpdw opened this issue Jul 31, 2019 · 2 comments

Comments

@fhquthpdw
Copy link

Hi,
When I install it by comamnd: go get github.com/elliotchance/redismock

show me an error list then can not install successful
../github.com/elliotchance/redismock/cmdable.go:135:26: cannot use db (type int64) as type int in argument to m.client.client.cmdable.Migrate
../github.com/elliotchance/redismock/cmdable.go:143:23: cannot use db (type int64) as type int in argument to m.client.client.cmdable.Move
../github.com/elliotchance/redismock/z_cmd.go:51:23: cannot use members (type []redis.Z) as type []*redis.Z in argument to m.client.client.cmdable.ZAdd
../github.com/elliotchance/redismock/z_cmd.go:59:25: cannot use members (type []redis.Z) as type []*redis.Z in argument to m.client.client.cmdable.ZAddNX
../github.com/elliotchance/redismock/z_cmd.go:67:25: cannot use members (type []redis.Z) as type []*redis.Z in argument to m.client.client.cmdable.ZAddXX
../github.com/elliotchance/redismock/z_cmd.go:75:25: cannot use members (type []redis.Z) as type []*redis.Z in argument to m.client.client.cmdable.ZAddCh
../github.com/elliotchance/redismock/z_cmd.go:83:27: cannot use members (type []redis.Z) as type []*redis.Z in argument to m.client.client.cmdable.ZAddNXCh
../github.com/elliotchance/redismock/z_cmd.go:91:27: cannot use members (type []redis.Z) as type []*redis.Z in argument to m.client.client.cmdable.ZAddXXCh
../github.com/elliotchance/redismock/z_cmd.go:99:24: cannot use member (type redis.Z) as type *redis.Z in argument to m.client.client.cmdable.ZIncr
../github.com/elliotchance/redismock/z_cmd.go:107:26: cannot use member (type redis.Z) as type *redis.Z in argument to m.client.client.cmdable.ZIncrNX
../github.com/elliotchance/redismock/z_cmd.go:107:26: too many errors

@elliotchance
Copy link
Owner

I have not updated the repo to use go modules yet. I suspect those errors are because of the github.com/go-redis/redis version you have installed. Try installing the specific version with dep first:

dep ensure github.com/go-redis/redis@6.15.3
go get -u go get github.com/elliotchance/redismock

@hom-bahrani
Copy link

I followed the advice in the answer and this is working ok for me

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