Closed robertoberlim closed 3 years ago
Need to remove usage of hirak/prestissimo from dockerfile
вт, 9 февр. 2021 г., 20:52 robertoberlim notifications@github.com:
While building composer, I stumbled on this error. Any ideas?
---> 3a6a9cffa9c6 Step 14/31 : COPY --from=composer /usr/bin/composer /usr/bin/composer latest: Pulling from library/composer 4c0d98bf9879: Pull complete ed03eff2d636: Pull complete fa67667da1de: Pull complete 6961b2fabe93: Pull complete fb0ff0908eb3: Pull complete 0e3194413ee7: Pull complete 9a3f9163b801: Pull complete 68aac131d818: Pull complete cc4e7f70d907: Pull complete e71c483549b2: Pull complete 481cd1b5bf41: Pull complete b580bf5c42f1: Pull complete 13b1f0bdd658: Pull complete a152d0bfb5c6: Pull complete bd6ed252b842: Pull complete Digest: sha256:97ca3398b5f320babe8ae7fe931c6248cac42ca04919cd9b54986263819ba6a7 Status: Downloaded newer image for composer:latest ---> 0d04f5c3d65e Step 15/31 : ENV COMPOSER_ALLOW_SUPERUSER=1 ---> Running in 32a13b3ee470 Removing intermediate container 32a13b3ee470 ---> 9f46d7e2ec18 Step 16/31 : RUN composer global require hirak/prestissimo ---> Running in c1269acc335c Changed current directory to /root/.config/composer
[RuntimeException] No composer.json present in the current directory (./composer.json), this may be the cause of the following exception.
[InvalidArgumentException] Package hirak/prestissimo has a PHP requirement incompatible with your PHP version, PHP extensions and Composer version
require [--dev] [--dry-run] [--prefer-source] [--prefer-dist] [--fixed] [--no-suggest] [--no-progress] [--no-update] [--no-install] [--no-scripts] [--update-no-dev] [-w|--update-with-dependencies] [-W|--update-with-all-dependencies] [--with-dependencies] [--with-all-dependencies] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort-packages] [-o|--optimize-autoloader] [-a|--classmap-authoritative] [--apcu-autoloader] [--apcu-autoloader-prefix APCU-AUTOLOADER-PREFIX] [--] [
]... ERROR: Service 'php' failed to build: The command '/bin/sh -c composer global require hirak/prestissimo' returned a non-zero code: 1
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/zubroide/gitpab/issues/68, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAGKTOF3OW3NI5HLW3TA36LS6FY6JANCNFSM4XLOB3BA .
I've commented that line, and got this:
COPY --from=composer /usr/bin/composer /usr/bin/composer ENV COMPOSER_ALLOW_SUPERUSER=1
Step 29/30 : RUN composer dump-autoload
---> Running in 38e267e69bb9
Generating optimized autoload files
Class Egulias\EmailValidator\Exception\ExpectedQPair located in ./vendor/egulias/email-validator/EmailValidator/Exception/ExpectingQPair.php does not comply with psr-4 autoloading standard. Skipping.
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
In PackageManifest.php line 120:
Undefined index: name
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
ERROR: Service 'php' failed to build: The command '/bin/sh -c composer dump-autoload' returned a non-zero code: 1
Hello, and thank you for providing us such a useful tool
same error here, I commented the same line and got the same error as well. Any fix?
I really would like to try this tool!
While building composer, I stumbled on this error. Any ideas?