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.

CommentFileSizeAuthor
self-alias-caching.patch889 bytesgreg.1.anderson

Comments

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

If you say so :)

I swear that I tested self-update so I am surprised that it flat out does not work.

greg.1.anderson’s picture

Status: Reviewed & tested by the community » Patch (to be ported)

self-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.

msonnabaum’s picture

Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.