WIP: Check dependency levels #25

Draft
wolfogre wants to merge 2 commits from wolfogre/gitea-vet:featrue/package_level into main
Owner

Tried to add a check for dependency levels, they should follow the rule defined in Package Dependencies:

cmd -> routers -> services -> models -> modules

However, I realized that it is impossible to do it now. There are too much code breaks the rule, so I had to stop working on it, and submitted this WIP PR for possible usage in the future.


Run go vet -vettool=gitea-vet -dependencies ./... at gitea cc1f8cbe9:

# code.gitea.io/gitea/modules/session
modules/session/db.go:10:2: import "code.gitea.io/gitea/models/auth"
# code.gitea.io/gitea/modules/auth/webauthn
modules/auth/webauthn/webauthn.go:10:2: import "code.gitea.io/gitea/models/auth"
modules/auth/webauthn/webauthn.go:11:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/private
modules/private/serv.go:12:2: import "code.gitea.io/gitea/models/asymkey"
modules/private/serv.go:13:2: import "code.gitea.io/gitea/models/perm"
modules/private/serv.go:14:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/ssh
modules/ssh/ssh.go:25:2: import "code.gitea.io/gitea/models/asymkey"
# code.gitea.io/gitea/modules/gitgraph
modules/gitgraph/graph_models.go:11:2: import "code.gitea.io/gitea/models/asymkey"
modules/gitgraph/graph_models.go:12:2: import "code.gitea.io/gitea/models/db"
modules/gitgraph/graph_models.go:13:2: import "code.gitea.io/gitea/models/git"
modules/gitgraph/graph_models.go:14:2: import "code.gitea.io/gitea/models/repo"
modules/gitgraph/graph_models.go:15:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/system
modules/system/db.go:7:2: import "code.gitea.io/gitea/models/system"
modules/system/appstate_test.go:10:2: import "code.gitea.io/gitea/models/unittest"
# code.gitea.io/gitea/modules/metrics
modules/metrics/collector.go:7:2: import "code.gitea.io/gitea/models/activities"
# code.gitea.io/gitea/modules/notification/base
modules/notification/base/notifier.go:9:2: import "code.gitea.io/gitea/models/issues"
modules/notification/base/notifier.go:10:2: import "code.gitea.io/gitea/models/packages"
modules/notification/base/notifier.go:11:2: import "code.gitea.io/gitea/models/repo"
modules/notification/base/notifier.go:12:2: import "code.gitea.io/gitea/models/user"
modules/notification/base/null.go:9:2: import "code.gitea.io/gitea/models/issues"
modules/notification/base/null.go:10:2: import "code.gitea.io/gitea/models/packages"
modules/notification/base/null.go:11:2: import "code.gitea.io/gitea/models/repo"
modules/notification/base/null.go:12:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/notification/mirror
modules/notification/mirror/mirror.go:9:2: import "code.gitea.io/gitea/models/repo"
modules/notification/mirror/mirror.go:10:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/notification/mail
modules/notification/mail/mail.go:10:2: import "code.gitea.io/gitea/models/activities"
modules/notification/mail/mail.go:11:2: import "code.gitea.io/gitea/models/issues"
modules/notification/mail/mail.go:12:2: import "code.gitea.io/gitea/models/repo"
modules/notification/mail/mail.go:13:2: import "code.gitea.io/gitea/models/user"
modules/notification/mail/mail.go:16:2: import "code.gitea.io/gitea/services/mailer"
# code.gitea.io/gitea/modules/notification/indexer
modules/notification/indexer/indexer.go:9:2: import "code.gitea.io/gitea/models/issues"
modules/notification/indexer/indexer.go:10:2: import "code.gitea.io/gitea/models/repo"
modules/notification/indexer/indexer.go:11:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/notification/ui
modules/notification/ui/ui.go:9:2: import "code.gitea.io/gitea/models/activities"
modules/notification/ui/ui.go:10:2: import "code.gitea.io/gitea/models/db"
modules/notification/ui/ui.go:11:2: import "code.gitea.io/gitea/models/issues"
modules/notification/ui/ui.go:12:2: import "code.gitea.io/gitea/models/repo"
modules/notification/ui/ui.go:13:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/activitypub
modules/activitypub/client.go:16:2: import "code.gitea.io/gitea/models/user"
modules/activitypub/user_settings.go:7:2: import "code.gitea.io/gitea/models/user"
modules/activitypub/client_test.go:14:2: import "code.gitea.io/gitea/models/unittest"
modules/activitypub/client_test.go:15:2: import "code.gitea.io/gitea/models/user"
modules/activitypub/client_test.go:18:2: import "code.gitea.io/gitea/models"
modules/activitypub/main_test.go:10:2: import "code.gitea.io/gitea/models/unittest"
modules/activitypub/user_settings_test.go:9:2: import "code.gitea.io/gitea/models/unittest"
modules/activitypub/user_settings_test.go:10:2: import "code.gitea.io/gitea/models/user"
modules/activitypub/user_settings_test.go:12:2: import "code.gitea.io/gitea/models"
# code.gitea.io/gitea/modules/eventsource
modules/eventsource/manager_run.go:10:2: import "code.gitea.io/gitea/models/activities"
modules/eventsource/manager_run.go:11:2: import "code.gitea.io/gitea/models/issues"
modules/eventsource/manager_run.go:18:2: import "code.gitea.io/gitea/services/convert"
# code.gitea.io/gitea/modules/notification
modules/notification/notification.go:9:2: import "code.gitea.io/gitea/models/issues"
modules/notification/notification.go:10:2: import "code.gitea.io/gitea/models/packages"
modules/notification/notification.go:11:2: import "code.gitea.io/gitea/models/repo"
modules/notification/notification.go:12:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/notification/action
modules/notification/action/action.go:12:2: import "code.gitea.io/gitea/models/activities"
modules/notification/action/action.go:13:2: import "code.gitea.io/gitea/models/issues"
modules/notification/action/action.go:14:2: import "code.gitea.io/gitea/models/repo"
modules/notification/action/action.go:15:2: import "code.gitea.io/gitea/models/user"
modules/notification/action/action_test.go:11:2: import "code.gitea.io/gitea/models/activities"
modules/notification/action/action_test.go:12:2: import "code.gitea.io/gitea/models/db"
modules/notification/action/action_test.go:13:2: import "code.gitea.io/gitea/models/repo"
modules/notification/action/action_test.go:14:2: import "code.gitea.io/gitea/models/unittest"
modules/notification/action/action_test.go:15:2: import "code.gitea.io/gitea/models/user"
# code.gitea.io/gitea/modules/indexer/stats
modules/indexer/stats/db.go:9:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/stats/indexer.go:7:2: import "code.gitea.io/gitea/models/db"
modules/indexer/stats/indexer.go:8:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/stats/queue.go:9:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/stats/indexer_test.go:12:2: import "code.gitea.io/gitea/models/db"
modules/indexer/stats/indexer_test.go:13:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/stats/indexer_test.go:14:2: import "code.gitea.io/gitea/models/unittest"
modules/indexer/stats/indexer_test.go:18:2: import "code.gitea.io/gitea/models"
# code.gitea.io/gitea/modules/templates
modules/templates/helper.go:26:2: import "code.gitea.io/gitea/models/activities"
modules/templates/helper.go:27:2: import "code.gitea.io/gitea/models/avatars"
modules/templates/helper.go:28:2: import "code.gitea.io/gitea/models/db"
modules/templates/helper.go:29:2: import "code.gitea.io/gitea/models/issues"
modules/templates/helper.go:30:2: import "code.gitea.io/gitea/models/organization"
modules/templates/helper.go:31:2: import "code.gitea.io/gitea/models/repo"
modules/templates/helper.go:32:2: import "code.gitea.io/gitea/models/system"
modules/templates/helper.go:33:2: import "code.gitea.io/gitea/models/user"
modules/templates/helper.go:48:2: import "code.gitea.io/gitea/services/gitdiff"
# code.gitea.io/gitea/modules/indexer/issues
modules/indexer/issues/db.go:9:2: import "code.gitea.io/gitea/models/db"
modules/indexer/issues/db.go:10:2: import "code.gitea.io/gitea/models/issues"
modules/indexer/issues/indexer.go:14:2: import "code.gitea.io/gitea/models/db"
modules/indexer/issues/indexer.go:15:2: import "code.gitea.io/gitea/models/issues"
modules/indexer/issues/indexer.go:16:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/issues/indexer_test.go:13:2: import "code.gitea.io/gitea/models/unittest"
modules/indexer/issues/indexer_test.go:16:2: import "code.gitea.io/gitea/models"
# code.gitea.io/gitea/modules/indexer/code
modules/indexer/code/bleve.go:16:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/code/elastic_search.go:18:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/code/git.go:11:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/code/indexer.go:14:2: import "code.gitea.io/gitea/models/db"
modules/indexer/code/indexer.go:15:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/code/wrapped.go:11:2: import "code.gitea.io/gitea/models/repo"
modules/indexer/code/bleve_test.go:9:2: import "code.gitea.io/gitea/models/unittest"
modules/indexer/code/elastic_search_test.go:10:2: import "code.gitea.io/gitea/models/unittest"
modules/indexer/code/indexer_test.go:11:2: import "code.gitea.io/gitea/models/unittest"
modules/indexer/code/indexer_test.go:14:2: import "code.gitea.io/gitea/models"
# code.gitea.io/gitea/modules/repository
modules/repository/collaborator.go:9:2: import "code.gitea.io/gitea/models/db"
modules/repository/collaborator.go:10:2: import "code.gitea.io/gitea/models/perm"
modules/repository/collaborator.go:11:2: import "code.gitea.io/gitea/models/perm/access"
modules/repository/collaborator.go:12:2: import "code.gitea.io/gitea/models/repo"
modules/repository/collaborator.go:13:2: import "code.gitea.io/gitea/models/user"
modules/repository/commits.go:12:2: import "code.gitea.io/gitea/models/avatars"
modules/repository/commits.go:13:2: import "code.gitea.io/gitea/models/user"
modules/repository/create.go:14:2: import "code.gitea.io/gitea/models"
modules/repository/create.go:15:2: import "code.gitea.io/gitea/models/activities"
modules/repository/create.go:16:2: import "code.gitea.io/gitea/models/db"
modules/repository/create.go:17:2: import "code.gitea.io/gitea/models/git"
modules/repository/create.go:18:2: import "code.gitea.io/gitea/models/organization"
modules/repository/create.go:19:2: import "code.gitea.io/gitea/models/perm"
modules/repository/create.go:20:2: import "code.gitea.io/gitea/models/perm/access"
modules/repository/create.go:21:2: import "code.gitea.io/gitea/models/repo"
modules/repository/create.go:22:2: import "code.gitea.io/gitea/models/unit"
modules/repository/create.go:23:2: import "code.gitea.io/gitea/models/user"
modules/repository/create.go:24:2: import "code.gitea.io/gitea/models/webhook"
modules/repository/delete.go:7:2: import "code.gitea.io/gitea/models/db"
modules/repository/delete.go:8:2: import "code.gitea.io/gitea/models/organization"
modules/repository/delete.go:9:2: import "code.gitea.io/gitea/models/repo"
modules/repository/delete.go:10:2: import "code.gitea.io/gitea/models/user"
modules/repository/env.go:11:2: import "code.gitea.io/gitea/models/repo"
modules/repository/env.go:12:2: import "code.gitea.io/gitea/models/user"
modules/repository/fork.go:7:2: import "code.gitea.io/gitea/models/organization"
modules/repository/fork.go:8:2: import "code.gitea.io/gitea/models/repo"
modules/repository/fork.go:9:2: import "code.gitea.io/gitea/models/user"
modules/repository/generate.go:17:2: import "code.gitea.io/gitea/models/git"
modules/repository/generate.go:18:2: import "code.gitea.io/gitea/models/repo"
modules/repository/generate.go:19:2: import "code.gitea.io/gitea/models/user"
modules/repository/init.go:17:2: import "code.gitea.io/gitea/models/issues"
modules/repository/init.go:18:2: import "code.gitea.io/gitea/models/repo"
modules/repository/init.go:19:2: import "code.gitea.io/gitea/models/user"
modules/repository/init.go:26:2: import "code.gitea.io/gitea/services/asymkey"
modules/repository/push.go:10:2: import "code.gitea.io/gitea/models/repo"
modules/repository/repo.go:16:2: import "code.gitea.io/gitea/models/db"
modules/repository/repo.go:17:2: import "code.gitea.io/gitea/models/git"
modules/repository/repo.go:18:2: import "code.gitea.io/gitea/models/organization"
modules/repository/repo.go:19:2: import "code.gitea.io/gitea/models/repo"
modules/repository/repo.go:20:2: import "code.gitea.io/gitea/models/user"
modules/repository/collaborator_test.go:9:2: import "code.gitea.io/gitea/models/db"
modules/repository/collaborator_test.go:10:2: import "code.gitea.io/gitea/models/organization"
modules/repository/collaborator_test.go:11:2: import "code.gitea.io/gitea/models/perm"
modules/repository/collaborator_test.go:12:2: import "code.gitea.io/gitea/models/perm/access"
modules/repository/collaborator_test.go:13:2: import "code.gitea.io/gitea/models/repo"
modules/repository/collaborator_test.go:14:2: import "code.gitea.io/gitea/models/unit"
modules/repository/collaborator_test.go:15:2: import "code.gitea.io/gitea/models/unittest"
modules/repository/collaborator_test.go:16:2: import "code.gitea.io/gitea/models/user"
modules/repository/commits_test.go:12:2: import "code.gitea.io/gitea/models/repo"
modules/repository/commits_test.go:13:2: import "code.gitea.io/gitea/models/system"
modules/repository/commits_test.go:14:2: import "code.gitea.io/gitea/models/unittest"
modules/repository/create_test.go:10:2: import "code.gitea.io/gitea/models"
modules/repository/create_test.go:11:2: import "code.gitea.io/gitea/models/activities"
modules/repository/create_test.go:12:2: import "code.gitea.io/gitea/models/db"
modules/repository/create_test.go:13:2: import "code.gitea.io/gitea/models/organization"
modules/repository/create_test.go:14:2: import "code.gitea.io/gitea/models/perm"
modules/repository/create_test.go:15:2: import "code.gitea.io/gitea/models/repo"
modules/repository/create_test.go:16:2: import "code.gitea.io/gitea/models/unittest"
modules/repository/create_test.go:17:2: import "code.gitea.io/gitea/models/user"
modules/repository/main_test.go:10:2: import "code.gitea.io/gitea/models/unittest"
# code.gitea.io/gitea/modules/doctor
modules/doctor/authorizedkeys.go:15:2: import "code.gitea.io/gitea/models/asymkey"
modules/doctor/breaking.go:10:2: import "code.gitea.io/gitea/models/db"
modules/doctor/breaking.go:11:2: import "code.gitea.io/gitea/models/user"
modules/doctor/checkOldArchives.go:11:2: import "code.gitea.io/gitea/models/repo"
modules/doctor/dbconsistency.go:9:2: import "code.gitea.io/gitea/models/activities"
modules/doctor/dbconsistency.go:10:2: import "code.gitea.io/gitea/models/db"
modules/doctor/dbconsistency.go:11:2: import "code.gitea.io/gitea/models/issues"
modules/doctor/dbconsistency.go:12:2: import "code.gitea.io/gitea/models/migrations"
modules/doctor/dbconsistency.go:13:2: import "code.gitea.io/gitea/models/repo"
modules/doctor/dbversion.go:9:2: import "code.gitea.io/gitea/models/db"
modules/doctor/dbversion.go:10:2: import "code.gitea.io/gitea/models/migrations"
modules/doctor/doctor.go:12:2: import "code.gitea.io/gitea/models/db"
modules/doctor/fix16961.go:11:2: import "code.gitea.io/gitea/models/db"
modules/doctor/fix16961.go:12:2: import "code.gitea.io/gitea/models/repo"
modules/doctor/fix16961.go:13:2: import "code.gitea.io/gitea/models/unit"
modules/doctor/heads.go:9:2: import "code.gitea.io/gitea/models/repo"
modules/doctor/lfs.go:12:2: import "code.gitea.io/gitea/services/repository"
modules/doctor/mergebase.go:11:2: import "code.gitea.io/gitea/models/db"
modules/doctor/mergebase.go:12:2: import "code.gitea.io/gitea/models/issues"
modules/doctor/mergebase.go:13:2: import "code.gitea.io/gitea/models/repo"
modules/doctor/misc.go:14:2: import "code.gitea.io/gitea/models"
modules/doctor/misc.go:15:2: import "code.gitea.io/gitea/models/db"
modules/doctor/misc.go:16:2: import "code.gitea.io/gitea/models/repo"
modules/doctor/misc.go:17:2: import "code.gitea.io/gitea/models/user"
modules/doctor/storage.go:12:2: import "code.gitea.io/gitea/models/git"
modules/doctor/storage.go:13:2: import "code.gitea.io/gitea/models/packages"
modules/doctor/storage.go:14:2: import "code.gitea.io/gitea/models/repo"
modules/doctor/storage.go:15:2: import "code.gitea.io/gitea/models/user"
modules/doctor/usertype.go:9:2: import "code.gitea.io/gitea/models/user"
modules/doctor/fix16961_test.go:9:2: import "code.gitea.io/gitea/models/repo"
# code.gitea.io/gitea/modules/context
modules/context/api.go:14:2: import "code.gitea.io/gitea/models/auth"
modules/context/api.go:15:2: import "code.gitea.io/gitea/models/repo"
modules/context/api.go:22:2: import "code.gitea.io/gitea/services/auth"
modules/context/api_org.go:6:8: import "code.gitea.io/gitea/models/organization"
modules/context/auth.go:11:2: import "code.gitea.io/gitea/models/auth"
modules/context/context.go:24:2: import "code.gitea.io/gitea/models/db"
modules/context/context.go:25:2: import "code.gitea.io/gitea/models/unit"
modules/context/context.go:26:2: import "code.gitea.io/gitea/models/user"
modules/context/context.go:39:2: import "code.gitea.io/gitea/services/auth"
modules/context/org.go:10:2: import "code.gitea.io/gitea/models/organization"
modules/context/org.go:11:2: import "code.gitea.io/gitea/models/perm"
modules/context/org.go:12:2: import "code.gitea.io/gitea/models/user"
modules/context/package.go:11:2: import "code.gitea.io/gitea/models/organization"
modules/context/package.go:12:2: import "code.gitea.io/gitea/models/packages"
modules/context/package.go:13:2: import "code.gitea.io/gitea/models/perm"
modules/context/package.go:14:2: import "code.gitea.io/gitea/models/unit"
modules/context/package.go:15:2: import "code.gitea.io/gitea/models/user"
modules/context/permission.go:7:2: import "code.gitea.io/gitea/models/unit"
modules/context/repo.go:16:2: import "code.gitea.io/gitea/models"
modules/context/repo.go:17:2: import "code.gitea.io/gitea/models/db"
modules/context/repo.go:18:2: import "code.gitea.io/gitea/models/git"
modules/context/repo.go:19:2: import "code.gitea.io/gitea/models/issues"
modules/context/repo.go:20:2: import "code.gitea.io/gitea/models/perm/access"
modules/context/repo.go:21:2: import "code.gitea.io/gitea/models/repo"
modules/context/repo.go:22:2: import "code.gitea.io/gitea/models/unit"
modules/context/repo.go:23:2: import "code.gitea.io/gitea/models/user"
modules/context/repo.go:33:2: import "code.gitea.io/gitea/services/asymkey"

Tried to add a check for dependency levels, they should follow the rule defined in [Package Dependencies](https://docs.gitea.io/zh-cn/guidelines-backend/#package-dependencies): ``` cmd -> routers -> services -> models -> modules ``` However, I realized that it is impossible to do it now. There are too much code breaks the rule, so I had to stop working on it, and submitted this WIP PR for possible usage in the future. --- Run `go vet -vettool=gitea-vet -dependencies ./...` at gitea `cc1f8cbe9`: ```text # code.gitea.io/gitea/modules/session modules/session/db.go:10:2: import "code.gitea.io/gitea/models/auth" # code.gitea.io/gitea/modules/auth/webauthn modules/auth/webauthn/webauthn.go:10:2: import "code.gitea.io/gitea/models/auth" modules/auth/webauthn/webauthn.go:11:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/private modules/private/serv.go:12:2: import "code.gitea.io/gitea/models/asymkey" modules/private/serv.go:13:2: import "code.gitea.io/gitea/models/perm" modules/private/serv.go:14:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/ssh modules/ssh/ssh.go:25:2: import "code.gitea.io/gitea/models/asymkey" # code.gitea.io/gitea/modules/gitgraph modules/gitgraph/graph_models.go:11:2: import "code.gitea.io/gitea/models/asymkey" modules/gitgraph/graph_models.go:12:2: import "code.gitea.io/gitea/models/db" modules/gitgraph/graph_models.go:13:2: import "code.gitea.io/gitea/models/git" modules/gitgraph/graph_models.go:14:2: import "code.gitea.io/gitea/models/repo" modules/gitgraph/graph_models.go:15:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/system modules/system/db.go:7:2: import "code.gitea.io/gitea/models/system" modules/system/appstate_test.go:10:2: import "code.gitea.io/gitea/models/unittest" # code.gitea.io/gitea/modules/metrics modules/metrics/collector.go:7:2: import "code.gitea.io/gitea/models/activities" # code.gitea.io/gitea/modules/notification/base modules/notification/base/notifier.go:9:2: import "code.gitea.io/gitea/models/issues" modules/notification/base/notifier.go:10:2: import "code.gitea.io/gitea/models/packages" modules/notification/base/notifier.go:11:2: import "code.gitea.io/gitea/models/repo" modules/notification/base/notifier.go:12:2: import "code.gitea.io/gitea/models/user" modules/notification/base/null.go:9:2: import "code.gitea.io/gitea/models/issues" modules/notification/base/null.go:10:2: import "code.gitea.io/gitea/models/packages" modules/notification/base/null.go:11:2: import "code.gitea.io/gitea/models/repo" modules/notification/base/null.go:12:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/notification/mirror modules/notification/mirror/mirror.go:9:2: import "code.gitea.io/gitea/models/repo" modules/notification/mirror/mirror.go:10:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/notification/mail modules/notification/mail/mail.go:10:2: import "code.gitea.io/gitea/models/activities" modules/notification/mail/mail.go:11:2: import "code.gitea.io/gitea/models/issues" modules/notification/mail/mail.go:12:2: import "code.gitea.io/gitea/models/repo" modules/notification/mail/mail.go:13:2: import "code.gitea.io/gitea/models/user" modules/notification/mail/mail.go:16:2: import "code.gitea.io/gitea/services/mailer" # code.gitea.io/gitea/modules/notification/indexer modules/notification/indexer/indexer.go:9:2: import "code.gitea.io/gitea/models/issues" modules/notification/indexer/indexer.go:10:2: import "code.gitea.io/gitea/models/repo" modules/notification/indexer/indexer.go:11:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/notification/ui modules/notification/ui/ui.go:9:2: import "code.gitea.io/gitea/models/activities" modules/notification/ui/ui.go:10:2: import "code.gitea.io/gitea/models/db" modules/notification/ui/ui.go:11:2: import "code.gitea.io/gitea/models/issues" modules/notification/ui/ui.go:12:2: import "code.gitea.io/gitea/models/repo" modules/notification/ui/ui.go:13:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/activitypub modules/activitypub/client.go:16:2: import "code.gitea.io/gitea/models/user" modules/activitypub/user_settings.go:7:2: import "code.gitea.io/gitea/models/user" modules/activitypub/client_test.go:14:2: import "code.gitea.io/gitea/models/unittest" modules/activitypub/client_test.go:15:2: import "code.gitea.io/gitea/models/user" modules/activitypub/client_test.go:18:2: import "code.gitea.io/gitea/models" modules/activitypub/main_test.go:10:2: import "code.gitea.io/gitea/models/unittest" modules/activitypub/user_settings_test.go:9:2: import "code.gitea.io/gitea/models/unittest" modules/activitypub/user_settings_test.go:10:2: import "code.gitea.io/gitea/models/user" modules/activitypub/user_settings_test.go:12:2: import "code.gitea.io/gitea/models" # code.gitea.io/gitea/modules/eventsource modules/eventsource/manager_run.go:10:2: import "code.gitea.io/gitea/models/activities" modules/eventsource/manager_run.go:11:2: import "code.gitea.io/gitea/models/issues" modules/eventsource/manager_run.go:18:2: import "code.gitea.io/gitea/services/convert" # code.gitea.io/gitea/modules/notification modules/notification/notification.go:9:2: import "code.gitea.io/gitea/models/issues" modules/notification/notification.go:10:2: import "code.gitea.io/gitea/models/packages" modules/notification/notification.go:11:2: import "code.gitea.io/gitea/models/repo" modules/notification/notification.go:12:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/notification/action modules/notification/action/action.go:12:2: import "code.gitea.io/gitea/models/activities" modules/notification/action/action.go:13:2: import "code.gitea.io/gitea/models/issues" modules/notification/action/action.go:14:2: import "code.gitea.io/gitea/models/repo" modules/notification/action/action.go:15:2: import "code.gitea.io/gitea/models/user" modules/notification/action/action_test.go:11:2: import "code.gitea.io/gitea/models/activities" modules/notification/action/action_test.go:12:2: import "code.gitea.io/gitea/models/db" modules/notification/action/action_test.go:13:2: import "code.gitea.io/gitea/models/repo" modules/notification/action/action_test.go:14:2: import "code.gitea.io/gitea/models/unittest" modules/notification/action/action_test.go:15:2: import "code.gitea.io/gitea/models/user" # code.gitea.io/gitea/modules/indexer/stats modules/indexer/stats/db.go:9:2: import "code.gitea.io/gitea/models/repo" modules/indexer/stats/indexer.go:7:2: import "code.gitea.io/gitea/models/db" modules/indexer/stats/indexer.go:8:2: import "code.gitea.io/gitea/models/repo" modules/indexer/stats/queue.go:9:2: import "code.gitea.io/gitea/models/repo" modules/indexer/stats/indexer_test.go:12:2: import "code.gitea.io/gitea/models/db" modules/indexer/stats/indexer_test.go:13:2: import "code.gitea.io/gitea/models/repo" modules/indexer/stats/indexer_test.go:14:2: import "code.gitea.io/gitea/models/unittest" modules/indexer/stats/indexer_test.go:18:2: import "code.gitea.io/gitea/models" # code.gitea.io/gitea/modules/templates modules/templates/helper.go:26:2: import "code.gitea.io/gitea/models/activities" modules/templates/helper.go:27:2: import "code.gitea.io/gitea/models/avatars" modules/templates/helper.go:28:2: import "code.gitea.io/gitea/models/db" modules/templates/helper.go:29:2: import "code.gitea.io/gitea/models/issues" modules/templates/helper.go:30:2: import "code.gitea.io/gitea/models/organization" modules/templates/helper.go:31:2: import "code.gitea.io/gitea/models/repo" modules/templates/helper.go:32:2: import "code.gitea.io/gitea/models/system" modules/templates/helper.go:33:2: import "code.gitea.io/gitea/models/user" modules/templates/helper.go:48:2: import "code.gitea.io/gitea/services/gitdiff" # code.gitea.io/gitea/modules/indexer/issues modules/indexer/issues/db.go:9:2: import "code.gitea.io/gitea/models/db" modules/indexer/issues/db.go:10:2: import "code.gitea.io/gitea/models/issues" modules/indexer/issues/indexer.go:14:2: import "code.gitea.io/gitea/models/db" modules/indexer/issues/indexer.go:15:2: import "code.gitea.io/gitea/models/issues" modules/indexer/issues/indexer.go:16:2: import "code.gitea.io/gitea/models/repo" modules/indexer/issues/indexer_test.go:13:2: import "code.gitea.io/gitea/models/unittest" modules/indexer/issues/indexer_test.go:16:2: import "code.gitea.io/gitea/models" # code.gitea.io/gitea/modules/indexer/code modules/indexer/code/bleve.go:16:2: import "code.gitea.io/gitea/models/repo" modules/indexer/code/elastic_search.go:18:2: import "code.gitea.io/gitea/models/repo" modules/indexer/code/git.go:11:2: import "code.gitea.io/gitea/models/repo" modules/indexer/code/indexer.go:14:2: import "code.gitea.io/gitea/models/db" modules/indexer/code/indexer.go:15:2: import "code.gitea.io/gitea/models/repo" modules/indexer/code/wrapped.go:11:2: import "code.gitea.io/gitea/models/repo" modules/indexer/code/bleve_test.go:9:2: import "code.gitea.io/gitea/models/unittest" modules/indexer/code/elastic_search_test.go:10:2: import "code.gitea.io/gitea/models/unittest" modules/indexer/code/indexer_test.go:11:2: import "code.gitea.io/gitea/models/unittest" modules/indexer/code/indexer_test.go:14:2: import "code.gitea.io/gitea/models" # code.gitea.io/gitea/modules/repository modules/repository/collaborator.go:9:2: import "code.gitea.io/gitea/models/db" modules/repository/collaborator.go:10:2: import "code.gitea.io/gitea/models/perm" modules/repository/collaborator.go:11:2: import "code.gitea.io/gitea/models/perm/access" modules/repository/collaborator.go:12:2: import "code.gitea.io/gitea/models/repo" modules/repository/collaborator.go:13:2: import "code.gitea.io/gitea/models/user" modules/repository/commits.go:12:2: import "code.gitea.io/gitea/models/avatars" modules/repository/commits.go:13:2: import "code.gitea.io/gitea/models/user" modules/repository/create.go:14:2: import "code.gitea.io/gitea/models" modules/repository/create.go:15:2: import "code.gitea.io/gitea/models/activities" modules/repository/create.go:16:2: import "code.gitea.io/gitea/models/db" modules/repository/create.go:17:2: import "code.gitea.io/gitea/models/git" modules/repository/create.go:18:2: import "code.gitea.io/gitea/models/organization" modules/repository/create.go:19:2: import "code.gitea.io/gitea/models/perm" modules/repository/create.go:20:2: import "code.gitea.io/gitea/models/perm/access" modules/repository/create.go:21:2: import "code.gitea.io/gitea/models/repo" modules/repository/create.go:22:2: import "code.gitea.io/gitea/models/unit" modules/repository/create.go:23:2: import "code.gitea.io/gitea/models/user" modules/repository/create.go:24:2: import "code.gitea.io/gitea/models/webhook" modules/repository/delete.go:7:2: import "code.gitea.io/gitea/models/db" modules/repository/delete.go:8:2: import "code.gitea.io/gitea/models/organization" modules/repository/delete.go:9:2: import "code.gitea.io/gitea/models/repo" modules/repository/delete.go:10:2: import "code.gitea.io/gitea/models/user" modules/repository/env.go:11:2: import "code.gitea.io/gitea/models/repo" modules/repository/env.go:12:2: import "code.gitea.io/gitea/models/user" modules/repository/fork.go:7:2: import "code.gitea.io/gitea/models/organization" modules/repository/fork.go:8:2: import "code.gitea.io/gitea/models/repo" modules/repository/fork.go:9:2: import "code.gitea.io/gitea/models/user" modules/repository/generate.go:17:2: import "code.gitea.io/gitea/models/git" modules/repository/generate.go:18:2: import "code.gitea.io/gitea/models/repo" modules/repository/generate.go:19:2: import "code.gitea.io/gitea/models/user" modules/repository/init.go:17:2: import "code.gitea.io/gitea/models/issues" modules/repository/init.go:18:2: import "code.gitea.io/gitea/models/repo" modules/repository/init.go:19:2: import "code.gitea.io/gitea/models/user" modules/repository/init.go:26:2: import "code.gitea.io/gitea/services/asymkey" modules/repository/push.go:10:2: import "code.gitea.io/gitea/models/repo" modules/repository/repo.go:16:2: import "code.gitea.io/gitea/models/db" modules/repository/repo.go:17:2: import "code.gitea.io/gitea/models/git" modules/repository/repo.go:18:2: import "code.gitea.io/gitea/models/organization" modules/repository/repo.go:19:2: import "code.gitea.io/gitea/models/repo" modules/repository/repo.go:20:2: import "code.gitea.io/gitea/models/user" modules/repository/collaborator_test.go:9:2: import "code.gitea.io/gitea/models/db" modules/repository/collaborator_test.go:10:2: import "code.gitea.io/gitea/models/organization" modules/repository/collaborator_test.go:11:2: import "code.gitea.io/gitea/models/perm" modules/repository/collaborator_test.go:12:2: import "code.gitea.io/gitea/models/perm/access" modules/repository/collaborator_test.go:13:2: import "code.gitea.io/gitea/models/repo" modules/repository/collaborator_test.go:14:2: import "code.gitea.io/gitea/models/unit" modules/repository/collaborator_test.go:15:2: import "code.gitea.io/gitea/models/unittest" modules/repository/collaborator_test.go:16:2: import "code.gitea.io/gitea/models/user" modules/repository/commits_test.go:12:2: import "code.gitea.io/gitea/models/repo" modules/repository/commits_test.go:13:2: import "code.gitea.io/gitea/models/system" modules/repository/commits_test.go:14:2: import "code.gitea.io/gitea/models/unittest" modules/repository/create_test.go:10:2: import "code.gitea.io/gitea/models" modules/repository/create_test.go:11:2: import "code.gitea.io/gitea/models/activities" modules/repository/create_test.go:12:2: import "code.gitea.io/gitea/models/db" modules/repository/create_test.go:13:2: import "code.gitea.io/gitea/models/organization" modules/repository/create_test.go:14:2: import "code.gitea.io/gitea/models/perm" modules/repository/create_test.go:15:2: import "code.gitea.io/gitea/models/repo" modules/repository/create_test.go:16:2: import "code.gitea.io/gitea/models/unittest" modules/repository/create_test.go:17:2: import "code.gitea.io/gitea/models/user" modules/repository/main_test.go:10:2: import "code.gitea.io/gitea/models/unittest" # code.gitea.io/gitea/modules/doctor modules/doctor/authorizedkeys.go:15:2: import "code.gitea.io/gitea/models/asymkey" modules/doctor/breaking.go:10:2: import "code.gitea.io/gitea/models/db" modules/doctor/breaking.go:11:2: import "code.gitea.io/gitea/models/user" modules/doctor/checkOldArchives.go:11:2: import "code.gitea.io/gitea/models/repo" modules/doctor/dbconsistency.go:9:2: import "code.gitea.io/gitea/models/activities" modules/doctor/dbconsistency.go:10:2: import "code.gitea.io/gitea/models/db" modules/doctor/dbconsistency.go:11:2: import "code.gitea.io/gitea/models/issues" modules/doctor/dbconsistency.go:12:2: import "code.gitea.io/gitea/models/migrations" modules/doctor/dbconsistency.go:13:2: import "code.gitea.io/gitea/models/repo" modules/doctor/dbversion.go:9:2: import "code.gitea.io/gitea/models/db" modules/doctor/dbversion.go:10:2: import "code.gitea.io/gitea/models/migrations" modules/doctor/doctor.go:12:2: import "code.gitea.io/gitea/models/db" modules/doctor/fix16961.go:11:2: import "code.gitea.io/gitea/models/db" modules/doctor/fix16961.go:12:2: import "code.gitea.io/gitea/models/repo" modules/doctor/fix16961.go:13:2: import "code.gitea.io/gitea/models/unit" modules/doctor/heads.go:9:2: import "code.gitea.io/gitea/models/repo" modules/doctor/lfs.go:12:2: import "code.gitea.io/gitea/services/repository" modules/doctor/mergebase.go:11:2: import "code.gitea.io/gitea/models/db" modules/doctor/mergebase.go:12:2: import "code.gitea.io/gitea/models/issues" modules/doctor/mergebase.go:13:2: import "code.gitea.io/gitea/models/repo" modules/doctor/misc.go:14:2: import "code.gitea.io/gitea/models" modules/doctor/misc.go:15:2: import "code.gitea.io/gitea/models/db" modules/doctor/misc.go:16:2: import "code.gitea.io/gitea/models/repo" modules/doctor/misc.go:17:2: import "code.gitea.io/gitea/models/user" modules/doctor/storage.go:12:2: import "code.gitea.io/gitea/models/git" modules/doctor/storage.go:13:2: import "code.gitea.io/gitea/models/packages" modules/doctor/storage.go:14:2: import "code.gitea.io/gitea/models/repo" modules/doctor/storage.go:15:2: import "code.gitea.io/gitea/models/user" modules/doctor/usertype.go:9:2: import "code.gitea.io/gitea/models/user" modules/doctor/fix16961_test.go:9:2: import "code.gitea.io/gitea/models/repo" # code.gitea.io/gitea/modules/context modules/context/api.go:14:2: import "code.gitea.io/gitea/models/auth" modules/context/api.go:15:2: import "code.gitea.io/gitea/models/repo" modules/context/api.go:22:2: import "code.gitea.io/gitea/services/auth" modules/context/api_org.go:6:8: import "code.gitea.io/gitea/models/organization" modules/context/auth.go:11:2: import "code.gitea.io/gitea/models/auth" modules/context/context.go:24:2: import "code.gitea.io/gitea/models/db" modules/context/context.go:25:2: import "code.gitea.io/gitea/models/unit" modules/context/context.go:26:2: import "code.gitea.io/gitea/models/user" modules/context/context.go:39:2: import "code.gitea.io/gitea/services/auth" modules/context/org.go:10:2: import "code.gitea.io/gitea/models/organization" modules/context/org.go:11:2: import "code.gitea.io/gitea/models/perm" modules/context/org.go:12:2: import "code.gitea.io/gitea/models/user" modules/context/package.go:11:2: import "code.gitea.io/gitea/models/organization" modules/context/package.go:12:2: import "code.gitea.io/gitea/models/packages" modules/context/package.go:13:2: import "code.gitea.io/gitea/models/perm" modules/context/package.go:14:2: import "code.gitea.io/gitea/models/unit" modules/context/package.go:15:2: import "code.gitea.io/gitea/models/user" modules/context/permission.go:7:2: import "code.gitea.io/gitea/models/unit" modules/context/repo.go:16:2: import "code.gitea.io/gitea/models" modules/context/repo.go:17:2: import "code.gitea.io/gitea/models/db" modules/context/repo.go:18:2: import "code.gitea.io/gitea/models/git" modules/context/repo.go:19:2: import "code.gitea.io/gitea/models/issues" modules/context/repo.go:20:2: import "code.gitea.io/gitea/models/perm/access" modules/context/repo.go:21:2: import "code.gitea.io/gitea/models/repo" modules/context/repo.go:22:2: import "code.gitea.io/gitea/models/unit" modules/context/repo.go:23:2: import "code.gitea.io/gitea/models/user" modules/context/repo.go:33:2: import "code.gitea.io/gitea/services/asymkey" ```
wolfogre added 1 commit 2023-01-16 03:10:00 +00:00
All checks were successful
continuous-integration/drone/pr Build is passing
26c845daad
feat: check for dependency level
wolfogre added 1 commit 2023-09-08 02:57:40 +00:00
All checks were successful
build and test / build and test (pull_request) Successful in 29s
da74b4f925
Merge branch 'main' into featrue/package_level
Some checks are pending
build and test / build and test (pull_request) Successful in 29s
continuous-integration/drone/pr
Required
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u featrue/package_level:wolfogre-featrue/package_level
git checkout wolfogre-featrue/package_level
Sign in to join this conversation.
No description provided.