Skip to content

Commit ed5d0c2

Browse files
committed
chore: upgrade to chi v5
1 parent 385ac5a commit ed5d0c2

31 files changed

+37
-37
lines changed

exp/services/recoverysigner/internal/serve/account_delete_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http/httptest"
88
"testing"
99

10-
"github.com/go-chi/chi"
10+
"github.com/go-chi/chi/v5"
1111
"github.com/stellar/go/exp/services/recoverysigner/internal/account"
1212
"github.com/stellar/go/exp/services/recoverysigner/internal/db/dbtest"
1313
"github.com/stellar/go/exp/services/recoverysigner/internal/serve/auth"

exp/services/recoverysigner/internal/serve/account_get_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http/httptest"
88
"testing"
99

10-
"github.com/go-chi/chi"
10+
"github.com/go-chi/chi/v5"
1111
"github.com/stellar/go/exp/services/recoverysigner/internal/account"
1212
"github.com/stellar/go/exp/services/recoverysigner/internal/db/dbtest"
1313
"github.com/stellar/go/exp/services/recoverysigner/internal/serve/auth"

exp/services/recoverysigner/internal/serve/account_post_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"testing"
1111

12-
"github.com/go-chi/chi"
12+
"github.com/go-chi/chi/v5"
1313
"github.com/stellar/go/exp/services/recoverysigner/internal/account"
1414
"github.com/stellar/go/exp/services/recoverysigner/internal/db/dbtest"
1515
"github.com/stellar/go/exp/services/recoverysigner/internal/serve/auth"

exp/services/recoverysigner/internal/serve/account_put_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/go-chi/chi"
11+
"github.com/go-chi/chi/v5"
1212
"github.com/stellar/go/exp/services/recoverysigner/internal/account"
1313
"github.com/stellar/go/exp/services/recoverysigner/internal/db/dbtest"
1414
"github.com/stellar/go/exp/services/recoverysigner/internal/serve/auth"

exp/services/recoverysigner/internal/serve/account_sign_signing_address_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"strings"
1111
"testing"
1212

13-
"github.com/go-chi/chi"
13+
"github.com/go-chi/chi/v5"
1414
"github.com/stellar/go/exp/services/recoverysigner/internal/account"
1515
"github.com/stellar/go/exp/services/recoverysigner/internal/db/dbtest"
1616
"github.com/stellar/go/exp/services/recoverysigner/internal/serve/auth"

exp/services/recoverysigner/internal/serve/serve.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88

99
firebaseauth "firebase.google.com/go/auth"
10-
"github.com/go-chi/chi"
10+
"github.com/go-chi/chi/v5"
1111
"github.com/prometheus/client_golang/prometheus"
1212
"github.com/stellar/go/exp/services/recoverysigner/internal/account"
1313
"github.com/stellar/go/exp/services/recoverysigner/internal/db"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ require (
1717
github.com/djherbis/fscache v0.10.1
1818
github.com/elazarl/go-bindata-assetfs v1.0.1
1919
github.com/getsentry/raven-go v0.2.0
20-
github.com/go-chi/chi v4.1.2+incompatible
20+
github.com/go-chi/chi/v5 v5.2.1
2121
github.com/go-errors/errors v1.5.1
2222
github.com/golang-jwt/jwt v3.2.2+incompatible
2323
github.com/google/uuid v1.6.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ github.com/gavv/monotime v0.0.0-20161010190848-47d58efa6955 h1:gmtGRvSexPU4B1T/y
160160
github.com/gavv/monotime v0.0.0-20161010190848-47d58efa6955/go.mod h1:vmp8DIyckQMXOPl0AQVHt+7n5h7Gb7hS6CUydiV8QeA=
161161
github.com/getsentry/raven-go v0.2.0 h1:no+xWJRb5ZI7eE8TWgIq1jLulQiIoLG0IfYxv5JYMGs=
162162
github.com/getsentry/raven-go v0.2.0/go.mod h1:KungGk8q33+aIAZUIVWZDr2OfAEBsO49PX4NzFV5kcQ=
163-
github.com/go-chi/chi v4.1.2+incompatible h1:fGFk2Gmi/YKXk0OmGfBh0WgmN3XB8lVnEyNz34tQRec=
164-
github.com/go-chi/chi v4.1.2+incompatible/go.mod h1:eB3wogJHnLi3x/kFX2A+IbTBlXxmMeXJVKy9tTv1XzQ=
163+
github.com/go-chi/chi/v5 v5.2.1 h1:KOIHODQj58PmL80G2Eak4WdvUzjSJSm0vG72crDCqb8=
164+
github.com/go-chi/chi/v5 v5.2.1/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops=
165165
github.com/go-errors/errors v1.5.1 h1:ZwEMSLRCapFLflTpT7NKaAc7ukJ8ZPEjzlxt8rPN8bk=
166166
github.com/go-errors/errors v1.5.1/go.mod h1:sIVyrIiJhuEF+Pj9Ebtd6P/rEYROXFi3BopGUQ5a5Og=
167167
github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU=

services/federation/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"os"
66

7-
"github.com/go-chi/chi"
7+
"github.com/go-chi/chi/v5"
88
"github.com/spf13/cobra"
99
"github.com/stellar/go/handlers/federation"
1010
"github.com/stellar/go/support/app"

services/friendbot/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
stdhttp "net/http"
77
"os"
88

9-
"github.com/go-chi/chi"
9+
"github.com/go-chi/chi/v5"
1010
"github.com/spf13/cobra"
1111

1212
"github.com/stellar/go/services/friendbot/internal"

services/horizon/internal/actions/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"unicode/utf8"
1414

1515
"github.com/asaskevich/govalidator"
16-
"github.com/go-chi/chi"
16+
"github.com/go-chi/chi/v5"
1717
"github.com/gorilla/schema"
1818

1919
"github.com/stellar/go/services/horizon/internal/assets"

services/horizon/internal/actions/helpers_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"testing"
1111
"time"
1212

13-
"github.com/go-chi/chi"
13+
"github.com/go-chi/chi/v5"
1414
"github.com/stretchr/testify/assert"
1515

1616
horizonContext "github.com/stellar/go/services/horizon/internal/context"

services/horizon/internal/actions_path_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/guregu/null"
1313

14-
"github.com/go-chi/chi"
14+
"github.com/go-chi/chi/v5"
1515
"github.com/stretchr/testify/assert"
1616
"github.com/stretchr/testify/mock"
1717

services/horizon/internal/hchi/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package hchi
55
import (
66
"context"
77

8-
"github.com/go-chi/chi/middleware"
8+
"github.com/go-chi/chi/v5/middleware"
99
)
1010

1111
// key is an unexported type for keys defined in this package.

services/horizon/internal/hchi/context_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"context"
55
"testing"
66

7-
"github.com/go-chi/chi/middleware"
7+
"github.com/go-chi/chi/v5/middleware"
88
"github.com/stretchr/testify/assert"
99
)
1010

services/horizon/internal/httpx/middleware.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"time"
1010

11-
"github.com/go-chi/chi/middleware"
11+
"github.com/go-chi/chi/v5/middleware"
1212
"github.com/prometheus/client_golang/prometheus"
1313

1414
"github.com/stellar/go/services/horizon/internal/actions"

services/horizon/internal/httpx/router.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010

1111
"github.com/stellar/go/clients/stellarcore"
1212

13-
"github.com/go-chi/chi"
14-
chimiddleware "github.com/go-chi/chi/middleware"
13+
"github.com/go-chi/chi/v5"
14+
chimiddleware "github.com/go-chi/chi/v5/middleware"
1515
"github.com/prometheus/client_golang/prometheus"
1616
"github.com/prometheus/client_golang/prometheus/promhttp"
1717
"github.com/rs/cors"

services/horizon/internal/httpx/stream_handler_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"sync"
1313
"testing"
1414

15-
"github.com/go-chi/chi"
15+
"github.com/go-chi/chi/v5"
1616
"github.com/stretchr/testify/mock"
1717

1818
"github.com/stellar/go/services/horizon/internal/actions"

services/horizon/internal/middleware_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strconv"
1010
"testing"
1111

12-
"github.com/go-chi/chi"
12+
"github.com/go-chi/chi/v5"
1313
"github.com/stellar/throttled"
1414
"github.com/stretchr/testify/assert"
1515
"github.com/stretchr/testify/suite"

services/horizon/internal/test/http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"net/url"
77
"strings"
88

9-
"github.com/go-chi/chi"
9+
"github.com/go-chi/chi/v5"
1010
)
1111

1212
type RequestHelper interface {

services/regulated-assets-approval-server/internal/serve/api_kyc_status_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"testing"
1313
"time"
1414

15-
"github.com/go-chi/chi"
15+
"github.com/go-chi/chi/v5"
1616
"github.com/google/uuid"
1717
"github.com/stellar/go/keypair"
1818
"github.com/stellar/go/services/regulated-assets-approval-server/internal/db/dbtest"

services/regulated-assets-approval-server/internal/serve/api_tx_approve_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"strings"
1010
"testing"
1111

12-
"github.com/go-chi/chi"
12+
"github.com/go-chi/chi/v5"
1313
"github.com/stellar/go/amount"
1414
"github.com/stellar/go/clients/horizonclient"
1515
"github.com/stellar/go/keypair"

services/regulated-assets-approval-server/internal/serve/friendbot_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/go-chi/chi"
11+
"github.com/go-chi/chi/v5"
1212
"github.com/stellar/go/clients/horizonclient"
1313
"github.com/stellar/go/network"
1414
"github.com/stellar/go/protocols/horizon"

services/regulated-assets-approval-server/internal/serve/serve.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"path"
88
"time"
99

10-
"github.com/go-chi/chi"
11-
"github.com/go-chi/chi/middleware"
10+
"github.com/go-chi/chi/v5"
11+
"github.com/go-chi/chi/v5/middleware"
1212
"github.com/stellar/go/amount"
1313
"github.com/stellar/go/clients/horizonclient"
1414
"github.com/stellar/go/keypair"

services/regulated-assets-approval-server/internal/serve/toml_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"net/http/httptest"
88
"testing"
99

10-
"github.com/go-chi/chi"
10+
"github.com/go-chi/chi/v5"
1111
"github.com/stellar/go/network"
1212
"github.com/stretchr/testify/assert"
1313
"github.com/stretchr/testify/require"

services/ticker/internal/graphql_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99
"testing"
1010

11-
"github.com/go-chi/chi"
11+
"github.com/go-chi/chi/v5"
1212

1313
"github.com/stellar/go/services/ticker/internal/gql"
1414
"github.com/stellar/go/services/ticker/internal/tickerdb/tickerdbtest"

support/http/httpdecode/httpdecode.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"mime"
66
"net/http"
77

8-
"github.com/go-chi/chi"
8+
"github.com/go-chi/chi/v5"
99
"github.com/gorilla/schema"
1010
"github.com/stellar/go/support/errors"
1111
)

support/http/httpdecode/httpdecode_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
"testing"
99

10-
"github.com/go-chi/chi"
10+
"github.com/go-chi/chi/v5"
1111
"github.com/stretchr/testify/assert"
1212
"github.com/stretchr/testify/require"
1313
)

support/http/logging_middleware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"strings"
77
"time"
88

9-
"github.com/go-chi/chi"
10-
"github.com/go-chi/chi/middleware"
9+
"github.com/go-chi/chi/v5"
10+
"github.com/go-chi/chi/v5/middleware"
1111

1212
"github.com/stellar/go/support/http/mutil"
1313
"github.com/stellar/go/support/log"

support/http/logging_middleware_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
stdhttp "net/http"
55
"testing"
66

7-
"github.com/go-chi/chi"
8-
"github.com/go-chi/chi/middleware"
7+
"github.com/go-chi/chi/v5"
8+
"github.com/go-chi/chi/v5/middleware"
99
"github.com/stretchr/testify/assert"
1010

1111
"github.com/stellar/go/support/http/httptest"

support/http/mux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
package http
22

33
import (
4-
"github.com/go-chi/chi"
5-
"github.com/go-chi/chi/middleware"
4+
"github.com/go-chi/chi/v5"
5+
"github.com/go-chi/chi/v5/middleware"
66
"github.com/rs/cors"
77

88
"github.com/stellar/go/support/log"

0 commit comments

Comments
 (0)