michaelmcandrew / civicrm-buildkit-docker

This is a read only copy. Please make PRs here: https://lab.civicrm.org/michaelmcandrew/civicrm-buildkit-docker
https://lab.civicrm.org/michaelmcandrew/civicrm-buildkit-docker
GNU Affero General Public License v3.0
40 stars 31 forks source link

CiviBuild with older versions of CiviCRM fails #79

Closed jaapjansma closed 2 years ago

jaapjansma commented 2 years ago

When running a command like civibuild create civi537 --type drupal-demo --civi-ver 5.37.2 fails with


Compiling additional files (For full details, use verbose "-v" mode.)
Compile: Generate CCL wrapper functions

In Event.php line 49:

  [TypeError]                                                                                                                                                                                                                              
  Argument 1 passed to Composer\EventDispatcher\Event::__construct() must be of the type string, null given, called in /buildkit/build/aivl/web/sites/all/modules/civicrm/vendor/civicrm/composer-compile-plugin/src/Event/CompileTaskEve  
  nt.php on line 55                                                                                                                                                                                                                        

Exception trace:
  at phar:///buildkit/bin/composer/src/Composer/EventDispatcher/Event.php:49
 Composer\EventDispatcher\Event->__construct() at /buildkit/build/aivl/web/sites/all/modules/civicrm/vendor/civicrm/composer-compile-plugin/src/Event/CompileTaskEvent.php:55
 Civi\CompilePlugin\Event\CompileTaskEvent->__construct() at /buildkit/build/aivl/web/sites/all/modules/civicrm/vendor/civicrm/composer-compile-plugin/src/TaskRunner.php:205
 Civi\CompilePlugin\TaskRunner->runTask() at /buildkit/build/aivl/web/sites/all/modules/civicrm/vendor/civicrm/composer-compile-plugin/src/TaskRunner.php:169
 Civi\CompilePlugin\TaskRunner->run() at /buildkit/build/aivl/web/sites/all/modules/civicrm/vendor/civicrm/composer-compile-plugin/src/TaskRunner.php:74
 Civi\CompilePlugin\TaskRunner->runDefault() at /buildkit/build/aivl/web/sites/all/modules/civicrm/vendor/civicrm/composer-compile-plugin/src/Command/CompileCommand.php:75
 Civi\CompilePlugin\Command\CompileCommand->execute() at phar:///buildkit/bin/composer/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar:///buildkit/bin/composer/vendor/symfony/console/Application.php:1015
 Symfony\Component\Console\Application->doRunCommand() at phar:///buildkit/bin/composer/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at phar:///buildkit/bin/composer/src/Composer/Console/Application.php:334
 Composer\Console\Application->doRun() at phar:///buildkit/bin/composer/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar:///buildkit/bin/composer/src/Composer/Console/Application.php:130
 Composer\Console\Application->run() at phar:///buildkit/bin/composer/bin/composer:88
 require() at /buildkit/bin/composer:29

compile [--all] [-N|--dry-run] [--soft-options [SOFT-OPTIONS]] [--] [<filterExpr>...]

Subcommand @composer compile  returned with error code 1

In ComposerPassthru.php line 72:

  Subcommand @composer compile  returned with error code 1  
jaapjansma commented 2 years ago

I don't what causes this it might be that this is a buildkit issue or it might have something to do with this docker configuration.

michaelmcandrew commented 2 years ago

Hey @jaapjansma - reading that error message I don't see anything that suggests that it is civicrm-buildkit-docker specific. I think it is more likely related to civicrm-buildkit but let me know if you have reason to think otherwise.

jaapjansma commented 2 years ago

Ah ok. I thought so but was not quite sure. I have opened an issue at buildkit: https://github.com/civicrm/civicrm-buildkit/issues/699