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.
Per an offline discussion with Adrian, Moshe and Anarcat, aliases will be renamed to require an '@' at the head. They will still be defined as $aliases['aliasname'] = array(...);
, per #727058: Site aliases should not be cached in the options context, but they will be references as @aliasname.
This will prevent ambiguities should someone choose to name an alias in a way that conflicts with a drush command name or command alias. e.g. drush @dl dl modulename
.
Patch coming shortly, after #727058 is committed.
Comment | File | Size | Author |
---|---|---|---|
#1 | drush-733244-with-727058.patch | 23.96 KB | greg.1.anderson |
Comments
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedHere is a patch that combines this change with #727058: Site aliases should not be cached in the options context. The key part of this new patch is in the function drush_set_config_options:
We also take the '@' out again when printing with
drush site-alias aliasname --full
in _drush_sitealias_print_record:Everything else works as it did before.
Comment #2
greg.1.anderson CreditAttribution: greg.1.anderson commentedComment #3
adrian CreditAttribution: adrian commentedThis has been rolled into :
#733256: Aliases should be loaded from a central location rather than drushrc.php
This part of the patch specifically seems to be working 100% fine.