Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helpers resource #2389

Open
orhtej2 opened this issue May 12, 2024 · 2 comments
Open

Helpers resource #2389

orhtej2 opened this issue May 12, 2024 · 2 comments

Comments

@orhtej2
Copy link

orhtej2 commented May 12, 2024

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):

  • core helpers in the version shipped with currently installed release of YunoHost
  • mongodb helpers from yunohost/mongodb from tag v1.3

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
Copy link

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

@alexAubin
Copy link
Member

(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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants