Initially reported in #1802344: Drush up notifies of -dev version update but then installs older stable release, but moved to separate issue after recommendation by greg.1.anderson.

An example showing the problem:

$ drush make-generate > ../test.make
$ grep dev ../test.make
projects[coffee][version] = "2.x-dev"
projects[views_send][version] = "1.0-alpha1+6-dev"
$ cd ../somedir
$ drush make ../test.make
Make new site in the current directory? (y/n): y
Could not locate views_send version 7.x-1.0-alpha1+6-dev, will try to download latest recommended or supported release.
[...]

The problem IMHO is that make doesn't recognize the new dev version numbers, as 7.x-1.0-alpha1+6-dev above, and installs the latest stable version in stead of the dev version. (Notice that a dev version without a stable release, like coffee above, works like expected.)

PS! The test above was done with Drush from the 8.x-6.x branch as of today.

CommentFileSizeAuthor
#1 drush-make-dev-1859706-1.patch950 byteshansfn
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hansfn’s picture

Version: » 8.x-6.x-dev
Status: Active » Needs review
FileSize
950 bytes

First attempt at a patch is attached. It does the job, and, only modules which has the new dev version info style is affected by the change.

hansfn’s picture

Just a quick note. The perfect solution is of course to use the git_drupalorg package manager to get the old (no longer available as a zip/tar.gz file) dev version. However, this should be configurable since not all people have git or want to use git.

Is the perfect solution necessary or is my simple patch enough?

kristiaanvandeneynde’s picture

I'm running into the same problem.

Falling back to git and checking out a certain commit for the time being.

moshe weitzman’s picture

Component: Make » PM (dl, en, up ...)
Assigned: Unassigned » jonhattan
Status: Needs review » Needs work

Shouldn't this be improved for pm-download as well?

moshe weitzman’s picture

would be good if someone extended this to pm-download.

greg.1.anderson’s picture

Status: Needs work » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.