aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-10-14 10:50:23 +0800
committerGitHub <noreply@github.com>2021-10-13 22:50:23 -0400
commitd47798ccc72236fa239834583ae8367a16ab3fbe (patch)
tree87b6bdcc1bafe828972d63a3aa55f000a5e2c019 /modules
parentbd14c40461042bd2bc5570d5f7cb9dfddda22f8a (diff)
downloadgitea-d47798ccc72236fa239834583ae8367a16ab3fbe.tar.gz
gitea-d47798ccc72236fa239834583ae8367a16ab3fbe.zip
Upgrade chi to v5 (#17298)
Diffstat (limited to 'modules')
-rw-r--r--modules/context/context.go2
-rw-r--r--modules/test/context_tests.go2
-rw-r--r--modules/validation/binding_test.go2
-rw-r--r--modules/web/route.go2
-rw-r--r--modules/web/route_test.go2
5 files changed, 5 insertions, 5 deletions
diff --git a/modules/context/context.go b/modules/context/context.go
index 2076ef82ab..29f52c53cd 100644
--- a/modules/context/context.go
+++ b/modules/context/context.go
@@ -33,7 +33,7 @@ import (
"gitea.com/go-chi/cache"
"gitea.com/go-chi/session"
- "github.com/go-chi/chi"
+ chi "github.com/go-chi/chi/v5"
"github.com/unknwon/com"
"github.com/unknwon/i18n"
"github.com/unrolled/render"
diff --git a/modules/test/context_tests.go b/modules/test/context_tests.go
index 8a4d2d8bce..02723d8c38 100644
--- a/modules/test/context_tests.go
+++ b/modules/test/context_tests.go
@@ -19,7 +19,7 @@ import (
"code.gitea.io/gitea/modules/git"
"code.gitea.io/gitea/modules/web/middleware"
- "github.com/go-chi/chi"
+ chi "github.com/go-chi/chi/v5"
"github.com/stretchr/testify/assert"
"github.com/unrolled/render"
)
diff --git a/modules/validation/binding_test.go b/modules/validation/binding_test.go
index d3b4e686ae..aa8a765524 100644
--- a/modules/validation/binding_test.go
+++ b/modules/validation/binding_test.go
@@ -10,7 +10,7 @@ import (
"testing"
"gitea.com/go-chi/binding"
- "github.com/go-chi/chi"
+ chi "github.com/go-chi/chi/v5"
"github.com/stretchr/testify/assert"
)
diff --git a/modules/web/route.go b/modules/web/route.go
index 9b08510264..ad9cea8bb6 100644
--- a/modules/web/route.go
+++ b/modules/web/route.go
@@ -15,7 +15,7 @@ import (
"code.gitea.io/gitea/modules/web/middleware"
"gitea.com/go-chi/binding"
- "github.com/go-chi/chi"
+ chi "github.com/go-chi/chi/v5"
)
// Wrap converts all kinds of routes to standard library one
diff --git a/modules/web/route_test.go b/modules/web/route_test.go
index 03955f0f2d..a8470fec94 100644
--- a/modules/web/route_test.go
+++ b/modules/web/route_test.go
@@ -10,7 +10,7 @@ import (
"net/http/httptest"
"testing"
- "github.com/go-chi/chi"
+ chi "github.com/go-chi/chi/v5"
"github.com/stretchr/testify/assert"
)