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

build: migrate go-redis/redis to redis/go-redis #1446

Merged
merged 2 commits into from
May 19, 2023

Conversation

infdahai
Copy link
Contributor

@infdahai infdahai commented May 18, 2023

update the go-redis package to support more redis commands and migrate go-redis packages.

What's changed and what's your intention?

  1. And more specifically, I want to use bzpop<max|min|null>, <z|s>intercard, zmpop go APIs to write some go-unit tests for supporting the more commands from zset or set in kvrocks. These commands from redis(version >= 6.2) are not implemented in this project.

  2. Due to is redis/go-version is a new version for go-redis/redis redis/go-redis#2560 (comment), we should use replace in go.mod or change "github.com/go-redis/redis/v9" from import-blocks in go files.
    The latter is more similar to contribsys/faktory@4454c4a and I prefer to try this based on Used for two different module paths error in go mod tidy golang-jwt/jwt#37 (comment).

git-hulk
git-hulk previously approved these changes May 19, 2023
@git-hulk git-hulk changed the title upgrade go mod Upgrade the redis-go to v9.0.0-rc.2 May 19, 2023
caipengbo
caipengbo previously approved these changes May 19, 2023
Copy link
Member

@tisonkun tisonkun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update the go-redis package to support more redis commands.

What does it mean? What commands do you want to test later? In this patch, it doesn't use new commands, and we're not serving with redis-go.

torwig
torwig previously approved these changes May 19, 2023
@infdahai infdahai changed the title Upgrade the redis-go to v9.0.0-rc.2 Upgrade the redis-go to v9.0.4 May 19, 2023
@infdahai
Copy link
Contributor Author

@tisonkun I modify the issue.

@infdahai infdahai changed the title Upgrade the redis-go to v9.0.4 Upgrade the redis-go to v9.0.4 && migrate go-redis/redis to redis/go-redis May 19, 2023
@infdahai infdahai changed the title Upgrade the redis-go to v9.0.4 && migrate go-redis/redis to redis/go-redis Upgrade redis-go to v9.0.4 && migrate go-redis/redis to redis/go-redis May 19, 2023
@infdahai infdahai dismissed stale reviews from torwig, caipengbo, and git-hulk via b255f6e May 19, 2023 06:41
1. Upgrade redis-go to v9.0.4

2. migrate go-redis/redis to redis/go-redis

Signed-off-by: clundro <infdahai@outlook.com>
@infdahai
Copy link
Contributor Author

infdahai commented May 19, 2023

What does it mean? What commands do you want to test later? In this patch, it doesn't use new commands, and we're not serving with redis-go.

BTW, mabe we can create a template for pull requests and it increases readability for code reviewers, such as risingwave pr_template or clickhouse pr_template(for changelogs).

@tisonkun
Copy link
Member

mabe we can create a template for pull requests and it increases readability for code reviewers

You're free to make your suggestion and patch, while I never find a long template help. Patches varies from one another and I tend to trust the author to fill necessary info. Also, the reviewers can give their suggestions.

@tisonkun tisonkun changed the title Upgrade redis-go to v9.0.4 && migrate go-redis/redis to redis/go-redis build: migrate go-redis/redis to redis/go-redis May 19, 2023
@git-hulk git-hulk merged commit 62a0d1b into apache:unstable May 19, 2023
@infdahai infdahai deleted the bump_go branch May 19, 2023 15:50
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 this pull request may close these issues.

5 participants