Kamalisk / arkhamdb

143 stars 84 forks source link

Composer 2 breaks build #522

Open G-Rowell opened 2 years ago

G-Rowell commented 2 years ago

Hi all,

I'm trying to build ArkhamDB locally, though have struggled greatly with a Sensio error.

Wondering if I can get any help here.

System info: OS:

uname -a

Linux xpsGrowell 5.10.0-16-amd64 #1 SMP Debian 5.10.127-2 (2022-07-23) x86_64 GNU/Linux

PHP:

php --version

PHP 7.4.30 (cli) (built: Jul  7 2022 15:51:43) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

Composer:

php --version

PHP 7.4.30 (cli) (built: Jul  7 2022 15:51:43) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
    with Zend OPcache v7.4.30, Copyright (c), by Zend Technologies

MySQL / MariaDB:

mysql --version

mysql  Ver 15.1 Distrib 10.5.15-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper

When running composer update...

composer update

....

Generating autoload files
35 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
> Incenteev\ParameterHandler\ScriptHandler::buildParameters
Creating the "app/config/parameters.yml" file
Some parameters are missing. Please provide them.
database_host (127.0.0.1):
database_port (null): 3306
database_name (symfony):
database_user (root):
database_password (null): test
mailer_transport (smtp):
mailer_host (127.0.0.1):
mailer_user (null):
mailer_password (null):
secret (ThisTokenIsNotSoSecretChangeIt):
cache_expiration (600):
email_sender_address (null):
email_sender_name (null):
website_name (null): test
website_url (null): 127.0.0.1
game_name (null): test
publisher_name ("~\_"): test
google_analytics_tracking_code (UA-00000000-1):
google_adsense_client (ca-pub-000000000000000):
google_adsense_slot (0):
> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap

In Process.php line 143:

[TypeError]
  Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, st
  ring given, called in /home/growell/Programming/arkhamdb/vendor/sensio/distribution-bundle/Composer
  /ScriptHandler.php on line 310

Exception trace:

.....

Would love some pointers & help for this!! @Kamalisk

zzorba commented 2 years ago

I have a running local copy.

I think you want to be sure to be on PHP 7.2.34 and you need to make sure to install composer 1.10.26 or it won't work.

G-Rowell commented 2 years ago

It appears that running composer 2 (the default) breaks the build process,

I'm leaving my initial post open as a reminder to update the readme