Closed (fixed)
Project:
Module Builder
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2011 at 21:12 UTC
Updated:
10 Nov 2011 at 13:40 UTC
When using latest drush to build a module (interactive mode) I get:
PHP Fatal error: Call to undefined function pm_dl_destination() in /home/rfay/workspace/commerce/sites/all/modules/module_builder/drush/module_builder.drush.inc on line 487
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Call to undefined function pm_dl_destination() in
/home/rfay/workspace/commerce/sites/all/modules/module_builder/drush/module_builder.drush.inc,
line 487
Comments
Comment #1
joachim commentedI'm increasingly baffled by drush versions:
and yet:
Comment #2
rsvelko commentedI've tracked it in the current latest Drush - the Drush 5.x branch. Now the function is called _pm_download_destination.
Replacing the pm_dl_destination call with this one still does not fix it though. The function does not exist in that context there...
For now I just added the static './sites/all/modules' and it works.
I changed the priority to major - cause it does not allow you to write anything to files now - and you have to output manually the info, moule and the rest separately and copy paste the code into files... no no no
Comment #3
joachim commentedAFAIK the latest version of drush is the 7.x-4.x branch, where I find that function.
Are you on Windows, and thus using 5.x-dev? Those drush branch numbers are just all over the place :/
Comment #4
rfayCurrent dev of drush is on the master branch...
Comment #5
joachim commentedIt seems to me that the drush version numbers and the git branches that correspond to them keep changing. Right now I can't make head nor tail of them:
- stable release drush 7.x-4.5 http://drupal.org/node/1247086 comes from a tag that is on branch 7.x-4.x
- dev release labelled drush-All-versions-5.x-dev comes from the master branch
Furthermore, the project page says to use '7.x', which I assume means 7.x-4.x.
Until there is some actual documentation on this, I'm not changing anything here.
Comment #6
rfayThe error occurs on the master branch, which is where the latest stuff goes in.
Comment #7
joachim commentedHmmm... *eyes narrowing* it still seems all over the place to me.
Anyway, fix committed which version-sniffs drush, as I don't want to break this for people who are downloading the recommended release, which being called 7.x-4.5 I assume is on the 4.x branch. But who knows!
Brownie points if anyone can tell me the proper API-ish way of doing this: