New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
drush cannot redeclare : it loads duplicate command files #280
Comments
|
Please use Drupal Answers for Support |
|
I've found http://drupal.stackexchange.com/questions/83959/cannot-redeclare-libraries-drush-command Is it a support request or an issue with drush ? I think modules could be duplicated in /profiles/ and /sites/all/modules/ as in /sites/example.org/modules/. And drush should take care of that. |
|
Agreed. Note that this was also a problem with modules originally, but I fixed that some time ago, see #644126. |
|
Another use case that is blocked by this is when I want to import a site into an aegir platform that contains one or more same modules as in the site directory. Please reconsider opening this issue. |
|
@weitzman this is not a support question, it's a bug, a regression even, at least from what I can tell. I thought I fixed this 3 years ago, can we at least keep this issue opened so we can talk about this? |
|
I think the problem is with the cache. The new code checks for duplicates before setting the cache, but if a module is detected after loading the cache, it will hit a dupe. |
|
Here's a working patch for 5.10: I'll figure out a pull request, but I am not sure I can test it because we still use drush 5 everywhere. |
|
Could this be related to #79 (comment) ? It seems to indicate that flaky cache rebuilds are at the root of that bug too. |
|
fwiw the above patch works for me in drush 5.10 using aegir 6.x-2.0. |
|
Above patch works for me too (I'm able to install a site in Aegir without errors), but I do get the following warning (multiple times):
|
|
Works for us too, drush 5.10 / aegir 6.x-2.0. No errors or warnings that I can tell. |
|
I can confirm this works for me on drush 5.10 and Aegir 6.x-2.1 also :) It would be great to get this rolled into drush 5.10 since it blocks development on Aegir props to anarcat |
j0natan commentedNov 22, 2013
Hi,
My original issue "drush cannot redeclare" (https://drupal.org/node/2141985) seems like "drush loads duplicate command files" (https://drupal.org/node/644126).
drush version 5.10.0
Sites cannot migrate between platform and show an error like:
The text was updated successfully, but these errors were encountered: