Skip to content

models should not depend on macaron #6927

@zeripath

Description

@zeripath

The models package dependency tree is rather complex. In particular it currently relies on and imports macaron.

This causes macaron's init to run even in gitea commands that will not run a webserver - it also prevents early mitigation of macaron's init.

We should move methods that require macaron out of models and in to routers or into modules and consider if there are other places in modules where we can avoid importing macaron.

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtopic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefile

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions