YunoHost / issues

General issue tracker for the YunoHost project
71 stars 7 forks source link

Helpers resource #2389

Open orhtej2 opened 1 month ago

orhtej2 commented 1 month ago

Add support for using additional, externally supplied helpers in application scripts:

[resources]
 [resources.helpers]
   core.version = 'current'   ## optional, this is the default value, always present at SOME version
   mongodb.version = 'v1.3'

This would magically source the following helpers (no need for source /usr/share/yunohost/helpers):

If this is omitted from manifest.toml a default of sourcing core@current is used.

This aims to remove copy-pasted experimental helpers for mongodb, redis, Matrix bridges etc.

We may even consider moving core helpers to separate repo to decouple YunoHost versioning from helpers versioning.

Salamandar commented 1 month ago

Yeah i had a POC PR that enables versionning of helpers. Would love to push that someday.

alexAubin commented 1 month ago

(NB: for mongodb, redis, ruby, we should really have these helpers in the core ... though i don't know how many different versions of those are in the wild x_x)