Skip to content

Commit

Permalink
Merge branch 'master' into redis#3139-add-encoding-BinaryUnmarshaler-…
Browse files Browse the repository at this point in the history
…scan
  • Loading branch information
ndyakov authored Feb 27, 2025
2 parents 064f534 + 7d55118 commit c02fa20
Show file tree
Hide file tree
Showing 31 changed files with 813 additions and 81 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Go

on:
push:
branches: [master, v9]
branches: [master, v9, v9.7]
pull_request:
branches: [master, v9]
branches: [master, v9, v9.7]

permissions:
contents: read
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ on:

permissions:
contents: read
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests

jobs:
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v6.5.0
2 changes: 1 addition & 1 deletion .github/workflows/spellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Check Spelling
uses: rojopolis/spellcheck-github-actions@0.46.0
uses: rojopolis/spellcheck-github-actions@0.47.0
with:
config_path: .github/spellcheck-settings.yml
task_name: Markdown
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ testdata/*
*.tar.gz
*.dic
redis8tests.sh
.vscode
3 changes: 1 addition & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
run:
concurrency: 8
deadline: 5m
timeout: 5m
tests: false
3 changes: 1 addition & 2 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5492,8 +5492,6 @@ func (cmd *InfoCmd) readReply(rd *proto.Reader) error {

section := ""
scanner := bufio.NewScanner(strings.NewReader(val))
moduleRe := regexp.MustCompile(`module:name=(.+?),(.+)$`)

for scanner.Scan() {
line := scanner.Text()
if strings.HasPrefix(line, "#") {
Expand All @@ -5504,6 +5502,7 @@ func (cmd *InfoCmd) readReply(rd *proto.Reader) error {
cmd.val[section] = make(map[string]string)
} else if line != "" {
if section == "Modules" {
moduleRe := regexp.MustCompile(`module:name=(.+?),(.+)$`)
kv := moduleRe.FindStringSubmatch(line)
if len(kv) == 3 {
cmd.val[section][kv[1]] = kv[2]
Expand Down
Loading

0 comments on commit c02fa20

Please sign in to comment.