Without this patch, the following construct does not work:
drush @dev sql-sync @live @self
Run with -s to see it in action; failure case will say 'no database record found for @self', whereas the sync commands will be echo'ed if it is working (once patch applied).
The workaround is to use drush @dev sql-sync @live @dev; the reason that this issue is so important is that site-upgrade uses "@self", as other scripts may as well, and the specific failure is confusing and non-intuitive. Fortunately, the fix is simple.
| Comment | File | Size | Author |
|---|---|---|---|
| self-alias-caching.patch | 889 bytes | greg.1.anderson |
Comments
Comment #1
moshe weitzman commentedIf you say so :)
I swear that I tested self-update so I am surprised that it flat out does not work.
Comment #2
greg.1.anderson commentedself-update does work if you use --root and --uri, and it used to work with aliases until I broke it with some changes to the way caching worked with @self. This re-fixes things.
Committed.
Comment #3
msonnabaum commentedAlready committed to 4.x:
http://drupal.org/commitlog/commit/2320/906dde69481cb3664e5cfb08c3192e26...