Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | drush-make-dev-1859706-1.patch | 950 bytes | hansfn |
Comments
Comment #1
hansfn CreditAttribution: hansfn commentedFirst 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.
Comment #2
hansfn CreditAttribution: hansfn commentedJust 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?
Comment #3
kristiaanvandeneyndeI'm running into the same problem.
Falling back to git and checking out a certain commit for the time being.
Comment #4
moshe weitzman CreditAttribution: moshe weitzman commentedShouldn't this be improved for pm-download as well?
Comment #5
moshe weitzman CreditAttribution: moshe weitzman commentedwould be good if someone extended this to pm-download.
Comment #6
greg.1.anderson CreditAttribution: greg.1.anderson commentedThis 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.