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

I encountered a version conflict when using this project #183

Open
nasa1024 opened this issue Oct 12, 2022 · 4 comments
Open

I encountered a version conflict when using this project #183

nasa1024 opened this issue Oct 12, 2022 · 4 comments

Comments

@nasa1024
Copy link

go build
# github.com/vmihailenco/taskq/v3
..\..\..\..\go\pkg\mod\github.com\vmihailenco\taskq\[email protected]\consumer.go:720:38: cannot use c.opt.Redis (variable of type Redis) as type redislock.RedisClient in argument to redislock.Obtain:
        Redis does not implement redislock.RedisClient (wrong type for Eval method)
                have Eval(ctx context.Context, script string, keys []string, args ...interface{}) *"github.com/go-redis/redis/v8".Cmd
                want Eval(ctx context.Context, script string, keys []string, args ...interface{}) *"github.com/go-redis/redis/v9".Cmd

after that, i used this commend

go mod why github.com/go-redis/redis/v9
# github.com/go-redis/redis/v9
main/tasks/task_queue
github.com/vmihailenco/taskq/v3
github.com/bsm/redislock
github.com/go-redis/redis/v9

in this href: https://github.com/vmihailenco/taskq/blob/v3/consumer.go
i found the file using github.com/go-redis/redis/v9, but in other file eg:https://github.com/vmihailenco/taskq/blob/v3/taskq.go.
the project using github.com/go-redis/redis/v8

@nasa1024
Copy link
Author

version v3.2.9

@nasa1024
Copy link
Author

How to reappear this error

go get -u && go mod tidy

this package github.com/bsm/redislock v0.7.2 will become github.com/bsm/redislock v0.8.1

@mrz1836
Copy link

mrz1836 commented Jan 25, 2023

I had the same issue @541573560

I used:
replace github.com/bsm/redislock => github.com/bsm/redislock v0.7.2

@nasa1024
Copy link
Author

nasa1024 commented Feb 1, 2023

thx,I solved it in the same way😀

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