Skip to content

There should be a possibility to set the server should fail to start when modrinth mods cannot get resolved #1903

@michiruf

Description

@michiruf

Enhancement Type

Improve an existing feature

Describe the enhancement

Since it is possible, that modrinth mods can be taken down (either by the owner, or the modrinth team), it should be possible to specify an environment variable to stop the server from starting if mod resolution using modrinth did fail for any mod.

If a server is run with an essential mod, that would otherwise cause data inconsistencies if not installed, this could cause alot of trouble and not running the server might be the solution. In my case this was an inventory synchronizing mod, that has not the possibility to merge data on startup and not starting the server would have helped.
I know that there is the REMOVE_OLD_MODS flag, which would also prevent this behaviour, but having a clean setup while trying to set up the server is kind of essential to me, so I always have this setting set to true.

A suggestion for the env could be MODRINTH_FAIL_ON_MOD_NOT_FOUND which defaults to the current behaviour false.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstatus/staleNo recently activity has been seen and will be closed soon.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions