Skip to content

I encountered a version conflict when using this project #183

@nasa1024

Description

@nasa1024
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions