Print extra verbose output for download errors to composer command if…#99
Open
joshua-graham-adelphi wants to merge 1 commit intodrupal-composer:masterfrom
Conversation
… -v is specified.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… -v is specified.
Command currently fails and unspecified errors.
This prints download errors if verbose mode is specified (-v).
Current output:
myusername@mycomputernameMSYS /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)
$`