I try to package livekit to host federated video call directly inside element-(X|web|desktop).
But installing go required by the jwt part i have this error
ynh_script_progression "Installing dependencies for jwt ..."
ynh_go_install
ynh_hide_warnings ynh_exec_as_app go version
pushd $install_dir/jwt
ynh_hide_warnings ynh_exec_as_app go build -o lk-jwt-service
popd
ynh_go_remove
I have printed the go version called by go command after the ynh_go_install command and this is not the good one:
15998 ERROR Unable to install livekit: An error occurred inside the app installation script
15998 INFO The operation 'Install the 'livekit' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20250501-002002-app_install-livekit' to get help
16028 WARNING Here's an extract of the logs before the crash. It might help debugging the error:
16029 INFO DEBUG - + path_with_go=/opt/goenv/versions/livekit/bin:/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims
16029 INFO DEBUG - + PATH_with_go=/opt/goenv/versions/livekit/bin:/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims
16029 INFO DEBUG - + pushd /var/www/livekit
16029 INFO DEBUG - /var/www/livekit /var/cache/yunohost/app_tmp_work_dirs/app_2ohaopen/scripts
16029 INFO DEBUG - + **/opt/goenv/bin/goenv local 1.23.8**
16029 INFO DEBUG - + popd
16029 INFO DEBUG - /var/cache/yunohost/app_tmp_work_dirs/app_2ohaopen/scripts
16029 INFO DEBUG - + ynh_hide_warnings ynh_exec_as_app go version
16029 INFO DEBUG - + ynh_exec_as_app go version
16029 INFO DEBUG - + sudo -u livekit env PATH=/opt/goenv/versions/livekit/bin:/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims COREPACK_ENABLE_DOWNLOAD_PROMPT=0 go version
16029 INFO DEBUG - **go version go1.19.8 linux/arm64**
16029 INFO DEBUG - + pushd /var/www/livekit/jwt
16029 INFO DEBUG - /var/www/livekit/jwt /var/cache/yunohost/app_tmp_work_dirs/app_2ohaopen/scripts
16030 INFO DEBUG - + ynh_hide_warnings ynh_exec_as_app go build -o lk-jwt-service
16030 INFO DEBUG - + ynh_exec_as_app go build -o lk-jwt-service
16030 INFO DEBUG - + sudo -u livekit env PATH=/opt/goenv/versions/livekit/bin:/opt/goenv/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/goenv/shims COREPACK_ENABLE_DOWNLOAD_PROMPT=0 go build -o lk-jwt-service
16030 INFO DEBUG - go: errors parsing go.mod:
16030 INFO DEBUG - /var/www/livekit/jwt/go.mod:3: invalid go version '1.23.0': must match format 1.23
16030 INFO DEBUG - /var/www/livekit/jwt/go.mod:5: unknown directive: toolchain
16030 INFO DEBUG - + ynh_exit_properly
16080 DEBUG action executed in 15.914s
16080 DEBUG lock has been released
i had to specify manually the path to go bin : /opt/goenv/versions/$go_version/bin/ because the path in $PATH is /opt/goenv/versions/$app/bin/ does not exist