YunoHost-Apps / pixelfed_ynh

The federated image shareing service Pixelfed for YunoHost
https://pixelfed.org/
GNU Affero General Public License v3.0
44 stars 15 forks source link

Upgrade Composer #122

Closed yalh76 closed 3 years ago

yalh76 commented 3 years ago

Solution

PR Status

Package_check results


Build Status

lapineige commented 3 years ago

What are these changes supposed to do ?

yalh76 commented 3 years ago

What are these changes supposed to do ?

Composer was recently upgrade to 2.0.4 and a lot of apps are not composer 2 ready, they depend on composer-api 1

here are the log of my last package_check during install:

Info:  [#######+............] > Installing composer dependencies...
Error: yunohost.app app_install - [1499.1] Could not install pixelfed: An error occurred inside the app installation script
Info: yunohost.log close - [1499.1] The operation 'Install the 'pixelfed' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20201103-162529-app_install-pixelfed --share' to get help
Warning: yunohost.app dump_app_log_extract_for_debugging - [1499.1] Here's an extract of the logs before the crash. It might help debugging the error:
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Class BaconQrCodeEncoderMaskUtil located in ./vendor/pixelfed/bacon-qr-code/src/BaconQrCode/Encoder/MaskUtil.php does not comply with psr-4 autoloading standard. Skipping.
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Class BaconQrCodeEncoderBlockPair located in ./vendor/pixelfed/bacon-qr-code/src/BaconQrCode/Encoder/BlockPair.php does not comply with psr-4 autoloading standard. Skipping.
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Class BaconQrCodeEncoderByteMatrix located in ./vendor/pixelfed/bacon-qr-code/src/BaconQrCode/Encoder/ByteMatrix.php does not comply with psr-4 autoloading standard. Skipping.
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Class BaconQrCodeEncoderMatrixUtil located in ./vendor/pixelfed/bacon-qr-code/src/BaconQrCode/Encoder/MatrixUtil.php does not comply with psr-4 autoloading standard. Skipping.
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Class BaconQrCodeEncoderEncoder located in ./vendor/pixelfed/bacon-qr-code/src/BaconQrCode/Encoder/Encoder.php does not comply with psr-4 autoloading standard. Skipping.
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Class BaconQrCodeEncoderQrCode located in ./vendor/pixelfed/bacon-qr-code/src/BaconQrCode/Encoder/QrCode.php does not comply with psr-4 autoloading standard. Skipping.
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - > IlluminateFoundationComposerScripts::postAutoloadDump
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - > @php artisan package:discover --ansi
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG -
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - In PackageManifest.php line 122:
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG -
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG -   Undefined index: name
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG -
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG -
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - ++ ynh_die 'Unable to update core dependencies with Composer.'
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - ++ ret_code=1
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - ++ echo 'Unable to update core dependencies with Composer.'
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - Unable to update core dependencies with Composer.
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - ++ exit 1
Info: yunohost.app dump_app_log_extract_for_debugging - [1499.1] DEBUG - + ynh_exit_properly