Page MenuHomePhabricator

Adjust drush wrapper path for bin/symlink behavior of recent Composer versions
Closed, ResolvedPublic

Description

Composer seems to be deleting some symlinks from vendor/bin, and we're relying on one of those to run drush. We've been just omitting the bin directory from vendor updates for a little while, but we need to adjust the drush path up on the Civi box so it works with the new way Composer wants to do things.

Event Timeline

Change 822176 had a related patch set uploaded (by Ejegg; author: Ejegg):

[wikimedia/fundraising/crm/vendor@master] DO NOT MERGE: commit vendor/bin typechanges

https://gerrit.wikimedia.org/r/822176

OK, it looks like it's deleting a symlink from vendor/bin/drush to vendor/drush/drush. It is replacing that symlink with a PHP file that includes the vendor/drush/drush script. Other folks with drupal sites are having problems with it too: https://github.com/composer/composer/issues/10602

Change 822176 merged by jenkins-bot:

[wikimedia/fundraising/crm/vendor@master] Commit vendor/bin typechanges from new Composer

https://gerrit.wikimedia.org/r/822176

Ejegg added a project: Fundraising-Backlog.

This seems to be working now. The fix was to use the @wmff aliases instead of specifying --user and -r

XenoRyet set Final Story Points to 1.