drupal-scaffold icon indicating copy to clipboard operation
drupal-scaffold copied to clipboard

Print extra verbose output for download errors to composer command if…

Open joshua-graham-adelphi opened this issue 6 years ago • 0 comments

… -v is specified.

Command currently fails and unspecified errors.

This prints download errors if verbose mode is specified (-v).

Current output: myusername@mycomputername MSYS /c/Projects/myproject (mybranch) $ composer drupal:scaffold

[Exception] Failed to download https://cgit.drupalcode.org/drupal/plain/sites/example.sites.php, https://cgit.drupalcode.org/drupal/plain/sites/example.settings.local.php, https://cgit.drupalcode.org/drupal/plain/sites /development.services.yml, https://cgit.drupalcode.org/drupal/plain/sites/default/default.settings.php, https://cgit.drupalcode.org/drupal/plain/sites/default/default.services.yml, https://cgit.drupalcode.o rg/drupal/plain/robots.txt, https://cgit.drupalcode.org/drupal/plain/index.php, https://cgit.drupalcode.org/drupal/plain/.htaccess, https://cgit.drupalcode.org/drupal/plain/web.config, https://cgit.drupalco de.org/drupal/plain/update.php, https://cgit.drupalcode.org/drupal/plain/.ht.router.php, https://cgit.drupalcode.org/drupal/plain/.gitattributes, https://cgit.drupalcode.org/drupal/plain/.eslintrc.json, htt ps://cgit.drupalcode.org/drupal/plain/.eslintignore, https://cgit.drupalcode.org/drupal/plain/.editorconfig, https://cgit.drupalcode.org/drupal/plain/.csslintrc

drupal:scaffold

myusername@mycomputername MSYS /c/Projects/myproject (mybranch) $`

if -v is specified with new code: `myusername@mycomputername MSYS /c/Projects/myproject (mybranch) $ composer drupal:scaffold -v

[Exception] Failed to download Array ( [https://cgit.drupalcode.org/drupal/plain/web.config] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/update.php] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/sites/example.sites.php] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/sites/example.settings.local.php] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/sites/development.services.yml] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/sites/default/default.settings.php] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/sites/default/default.services.yml] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/robots.txt] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/index.php] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none [https://cgit.drupalcode.org/drupal/plain/.htaccess] => 0: error setting certificate verify locations: CAfile: C:\Program Files (x86)\DevDesktop\common\cert\cacert.pem CApath: none )

Exception trace: () at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\PrestissimoFileFetcher.php:83 DrupalComposer\DrupalScaffold\PrestissimoFileFetcher->fetchWithPrestissimo() at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\PrestissimoFileFetcher.php:35 DrupalComposer\DrupalScaffold\PrestissimoFileFetcher->fetch() at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\Handler.php:163 DrupalComposer\DrupalScaffold\Handler->downloadScaffold() at C:\Projects\myproject\vendor\drupal-composer\drupal-scaffold\src\DrupalScaffoldCommand.php:31 DrupalComposer\DrupalScaffold\DrupalScaffoldCommand->execute() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Command/Command.php:242 Symfony\Component\Console\Command\Command->run() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Application.php:843 Symfony\Component\Console\Application->doRunCommand() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Application.php:193 Symfony\Component\Console\Application->doRun() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/src/Composer/Console/Application.php:251 Composer\Console\Application->doRun() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/vendor/symfony/console/Application.php:117 Symfony\Component\Console\Application->run() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/src/Composer/Console/Application.php:100 Composer\Console\Application->run() at phar://C:/Program Files (x86)/DevDesktop/tools/composer.phar/bin/composer:59 require() at C:\Program Files (x86)\DevDesktop\tools\composer.phar:24

drupal:scaffold

myusername@mycomputername MSYS /c/Projects/myproject (mybranch) $`

joshua-graham-adelphi avatar Jan 07 '19 07:01 joshua-graham-adelphi