summaryrefslogtreecommitdiffstats
path: root/services/context
diff options
context:
space:
mode:
authorGusted <postmaster@gusted.xyz>2024-08-27 01:57:40 +0200
committerGusted <postmaster@gusted.xyz>2024-08-27 21:28:56 +0200
commitbf0d100b84cc56c0d968f53a88a61f16d730a121 (patch)
tree2091be8ada50ac0c83af67463f62836115880346 /services/context
parent[CHORE] Move captcha library (diff)
downloadforgejo-bf0d100b84cc56c0d968f53a88a61f16d730a121.tar.xz
forgejo-bf0d100b84cc56c0d968f53a88a61f16d730a121.zip
[CHORE] Move cache library
- This is in the spirit of #5090. - Move to a fork of gitea.com/go-chi/cache, code.forgejo.org/go-chi/cache. It removes unused code (a lot of adapters, that can't be used by Forgejo) and unused dependencies (see go.sum). Also updates existing dependencies. https://code.forgejo.org/go-chi/cache/compare/8c64f1a3625880d82a47996bf0afcd6387a98e05..main
Diffstat (limited to 'services/context')
-rw-r--r--services/context/api.go2
-rw-r--r--services/context/captcha.go2
-rw-r--r--services/context/context.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/services/context/api.go b/services/context/api.go
index 89078ebf66..8e255c8573 100644
--- a/services/context/api.go
+++ b/services/context/api.go
@@ -24,7 +24,7 @@ import (
"code.gitea.io/gitea/modules/web"
web_types "code.gitea.io/gitea/modules/web/types"
- "gitea.com/go-chi/cache"
+ "code.forgejo.org/go-chi/cache"
)
// APIContext is a specific context for API service
diff --git a/services/context/captcha.go b/services/context/captcha.go
index 8d302dbf87..da837acb00 100644
--- a/services/context/captcha.go
+++ b/services/context/captcha.go
@@ -15,8 +15,8 @@ import (
"code.gitea.io/gitea/modules/recaptcha"
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/turnstile"
- mc "gitea.com/go-chi/cache"
+ mc "code.forgejo.org/go-chi/cache"
"code.forgejo.org/go-chi/captcha"
)
diff --git a/services/context/context.go b/services/context/context.go
index 6ab3ae761d..c0819ab11e 100644
--- a/services/context/context.go
+++ b/services/context/context.go
@@ -27,8 +27,8 @@ import (
"code.gitea.io/gitea/modules/web/middleware"
web_types "code.gitea.io/gitea/modules/web/types"
+ "code.forgejo.org/go-chi/cache"
"code.forgejo.org/go-chi/session"
- "gitea.com/go-chi/cache"
)
// Render represents a template render