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

upgrade from github.com/go-redis/redis/v9 v9.0.0-rc.2 to github.com/redis/go-redis/v9 v9.0.2 but build failed #2422

Closed
gzg1984 opened this issue Feb 6, 2023 · 3 comments · Fixed by #2428

Comments

@gzg1984
Copy link

gzg1984 commented Feb 6, 2023

used depend on github.com/go-redis/redis/v9 v9.0.0-rc.2,
remove go.mod and redo mod init
first of all , found this

    github.com/go-redis/redis/v9: github.com/go-redis/redis/v9@v9.0.2: parsing go.mod:
    module declares its path as: github.com/redis/go-redis/v9
            but was required as: github.com/go-redis/redis/v9

then I changed all mod dependency to github.com/redis/go-redis/v9

then I found

    # github.com/redis/go-redis/v9/internal/hscan
    /root/go/pkg/mod/github.com/redis/go-redis/v9@v9.0.2/internal/hscan/structmap.go:89:23: undefined: reflect.Pointer

hope anybody reproduce the problem

@monkey92t
Copy link
Collaborator

You need to upgrade the go version, #2424

@gzg1984
Copy link
Author

gzg1984 commented Feb 23, 2023

You need to upgrade the go version, #2424

which go-redis version is compatible with go1.17.12 ?

@vmihailenco
Copy link
Collaborator

Replace github.com/go-redis/redis/v9 with github.com/redis/go-redis/v9 - https://uptrace.dev/blog/go-redis-v9.html

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

Successfully merging a pull request may close this issue.

3 participants