YunoHost-Apps / ampache_ynh

Ampache package for YunoHost
http://ampache.org/
GNU General Public License v3.0
17 stars 16 forks source link

Dependency not compatible with Composer v2, installation fails #63

Closed tituspijean closed 3 years ago

tituspijean commented 3 years ago

Related to some comments in #62, but specific to the installation script.


Describe the bug

Installation fails due to Composer dependencies installation.

Context

Steps to reproduce

Try installing the app.

Expected behavior

App installation without error.

Logs

36258 WARNING Do not run Composer as root/super user! See https://getcomposer.org/root for details
36258 DEBUG + local legacy_args=mc
36258 WARNING Installing dependencies from lock file
36258 DEBUG + args_array=([m]=message= [c]=ret_code=)
36259 WARNING Verifying lock file contents can be installed on current platform.
36259 DEBUG + local -A args_array
36259 WARNING Your lock file does not contain a compatible set of packages. Please run composer update.
36259 DEBUG + local message
36259 WARNING
36260 DEBUG + local ret_code
36260 WARNING   Problem 1
36260 DEBUG + ynh_handle_getopts_args 'Unable to update core dependencies with Composer.'
36260 WARNING     - robloach/component-installer is locked to version 0.2.3 and an update of this package was not requested.
36260 DEBUG + set +o xtrace
36260 WARNING     - robloach/component-installer 0.2.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
36261 DEBUG + echo '! Helper used in legacy mode !'
36261 WARNING   Problem 2
36261 DEBUG + set +x
36261 WARNING     - wikimedia/composer-merge-plugin is locked to version v1.4.1 and an update of this package was not requested.
36261 DEBUG + ret_code=1
36261 WARNING     - wikimedia/composer-merge-plugin v1.4.1 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
36262 DEBUG + echo 'Unable to update core dependencies with Composer.'
36262 WARNING   Problem 3
36262 DEBUG + exit 1
36262 WARNING     - robloach/component-installer 0.2.3 requires composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
36262 DEBUG + ynh_exit_properly
36262 WARNING     - xdan/datetimepicker 2.4.5 requires robloach/component-installer * -> satisfiable by robloach/component-installer[0.2.3].
36262 DEBUG + local exit_code=1
36262 WARNING     - xdan/datetimepicker is locked to version 2.4.5 and an update of this package was not requested.
36262 DEBUG + '[' 1 -eq 0 ']'
36263 WARNING
36263 DEBUG + trap '' EXIT
36263 WARNING You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.
36263 DEBUG + set +o errexit
36263 WARNING Unable to update core dependencies with Composer.

Fix is incoming.