Tuesday, July 18, 2023
apps@conference.yunohost.org
July
Mon Tue Wed Thu Fri Sat Sun
          1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
           

[16:54:16] <eric_G> any idea on how to fix the Mattermost Upgrade from 7.3.0 `WARNING ERROR: database "mattermost" already exists` in https://ci-apps-dev.yunohost.org/ci/job/8281 ?
[17:17:35] <Dante> Hi everyone 🙂

I'm migrating the mautrix_whatsapp app to packaging v2 and in order to finish it I need to refactor the updater.sh script of Github Actions, but since now the manifest it is in TOML format, I'm a bit stuck in what tool to use to read/write on it (I want to avoid sed) any tips about it?

I've been using this tool https://github.com/TomWright/dasel , mainly it works fine but it is a bit annoying that it reorders the keys of the TOML alphabetically and also other issues
[17:35:50] <Mateusz Szymański> Gp
[19:17:38] <eric_G> `Warning: Packagers: option language has 'choices' but has type 'string', use 'select' instead to remove this warning.`
[19:18:03] <eric_G> do we need to change that?
[20:29:31] <Tag> > <@ericg:matrix.org> any idea on how to fix the Mattermost Upgrade from 7.3.0 `WARNING ERROR: database "mattermost" already exists` in https://ci-apps-dev.yunohost.org/ci/job/8281 ?

You could tweak this part to load postgresql settings instead of creating the db https://github.com/YunoHost-Apps/mattermost_ynh/blob/v2/scripts/_common.sh#L23-L26
[20:41:00] <Tag> > <@thardev:matrix.org> Hi everyone 🙂
>
> I'm migrating the mautrix_whatsapp app to packaging v2 and in order to finish it I need to refactor the updater.sh script of Github Actions, but since now the manifest it is in TOML format, I'm a bit stuck in what tool to use to read/write on it (I want to avoid sed) any tips about it?
>
> I've been using this tool https://github.com/TomWright/dasel , mainly it works fine but it is a bit annoying that it reorders the keys of the TOML alphabetically and also other issues

I have commented here : https://github.com/YunoHost-Apps/mautrix_whatsapp_ynh/pull/104/files#r1267285573 :)
[20:41:38] <orhtej2> > <@thardev:matrix.org> Hi everyone 🙂
>
> I'm migrating the mautrix_whatsapp app to packaging v2 and in order to finish it I need to refactor the updater.sh script of Github Actions, but since now the manifest it is in TOML format, I'm a bit stuck in what tool to use to read/write on it (I want to avoid sed) any tips about it?
>
> I've been using this tool https://github.com/TomWright/dasel , mainly it works fine but it is a bit annoying that it reorders the keys of the TOML alphabetically and also other issues

as @Aleks (he/him/il/lui) mentioned earlier here most of apps are these days updated by magical deployment of https://github.com/YunoHost/apps/blob/master/tools/autoupdate_app_sources/autoupdate_app_sources.py rather than GitHub actions, perhaps you should look into that?
[20:42:22] <orhtej2> ah @Tag actually knows the details :)
[20:42:40] <Tag> Where do you get this error ? It could be a config_panel or a manifest question ?
[20:43:16] <eric_G> Tag: while installing yourls app
[20:43:49] <eric_G> a manifest question
[20:47:26] <Tag> Okay. Well that's only a warning so it's okay-ish to have it. But it's better to change the type to something else (select or tag), or to remove the choices.