Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The help for core-quick-drupal gives an example
drush qd --profile=minimal --dev --cache --default-major=8 --yes
which fails
Unknown option: --default-major. See `drush help core-quick-drupal` for information on usage. [error]
Comment | File | Size | Author |
---|---|---|---|
#3 | drush-qd_core_example-134539-3.patch | 1.52 KB | eporama |
Comments
Comment #1
bfroehle CreditAttribution: bfroehle commentedI suspect the example should instead use
--core=drupal-8.x
.Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commentedIf the command declared pm-download in 'drush dependencies', then it should recognize all of the dl options, including --default-major. See `drush topic docs-commands`.
Comment #3
eporama CreditAttribution: eporama commentedAlthough the function
drush_core_quick_drupal_options()
in core.drush.inc specifically unsets this.unset($options['default-major']);
So adding
$items['core-quick-drupal']['drush dependencies'] = array('pm');
doesn't work in this case.I've attached a patch to at least get the example to match the current options so that while this is figured out, we at least are consistent.
Comment #4
eporama CreditAttribution: eporama commentedrealized I never set my previous patch to needs review
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedCommitted. Thanks.