From a35749893b91db48310d91ae0a32fee3ad3bb901 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Thu, 29 Dec 2022 03:57:15 +0100 Subject: Move `convert` package to services (#22264) Addition to #22256 The `convert` package relies heavily on different models which is [disallowed by our definition of modules](https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md#design-guideline). This helps to prevent possible import cycles. Co-authored-by: Lunny Xiao --- services/lfs/locks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'services/lfs') diff --git a/services/lfs/locks.go b/services/lfs/locks.go index 0dc51f063c..d5fe3f4e31 100644 --- a/services/lfs/locks.go +++ b/services/lfs/locks.go @@ -11,12 +11,12 @@ import ( git_model "code.gitea.io/gitea/models/git" repo_model "code.gitea.io/gitea/models/repo" "code.gitea.io/gitea/modules/context" - "code.gitea.io/gitea/modules/convert" "code.gitea.io/gitea/modules/json" lfs_module "code.gitea.io/gitea/modules/lfs" "code.gitea.io/gitea/modules/log" "code.gitea.io/gitea/modules/setting" api "code.gitea.io/gitea/modules/structs" + "code.gitea.io/gitea/services/convert" ) func handleLockListOut(ctx *context.Context, repo *repo_model.Repository, lock *git_model.LFSLock, err error) { -- cgit v1.2.3