I just made a
drush dl menu_block --dev
but this will download the 3.x-dev Version:
Install location /var/www/domains/asdf/public_html/sites/all/modules/menu_block already exists. Do you want to overwrite it? (y/n): y
Project menu_block (7.x-3.x-dev) downloaded to [success]
/var/www/domains/asdf/public_html/sites/all/modules/menu_block.
the only Problem is, that this Version contains older code then the 2.x-dev
is there a way to prevent this?
When I download it with:
drush dl menu_block-7.x-2.x-dev
it works obviously
Comments
Comment #1
johnalbinAnd doing a
drush dl zen --devwill download the 7.x-6.x-dev release node I had to create in order to discuss a new version that has yet to have any work done on it. (The download is completely bogus and only contains a DROIDS.txt file.)The "newest" -dev for both Zen and Menu block are not listed on their project homepages because they are not meant to be downloaded.
IMO, drush should download the latest -dev listed on the project homepage. Or (if no -dev listed on homepage) it should use the logic it currently uses for downloading a -dev release.
Comment #2
moshe weitzman commentedUntil someone has time and interest to work on this, folks can use --select or type in a specific version to get the one you want
Comment #3
owen barton commentedI think the issue here is that we don't get this information from d.o:
vs.
The only difference here is the release type tag, but that doesn't seem to match your needs here (i.e. 7.x-6.x could have a release type tag and still not be displayed on the project page). Hence, I think the options are to (a) scrape d.o. project pages (ugly and won't get into drush core - although it could be a contrib), (b) patch d.o. to include the dev release selection in the xml or perhaps (c) add an "experimental" release type tag that drush could use to deprioritize these (this wouldn't be exactly what you are asking for, but I think would fill the basic need). How do these sound...other ideas?
Comment #4
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.