The module I'm trying to update is image_fupload dev snapshot. I already have a snapshot installed from sept 21, but the current snapshot is from sept 29. So there's new code in the module but the version number remains the same.
When I run drush update image_fupload-6.x-3.x-dev it tells me the versions of all my modules and lists this module as such:
Image FUpload 6.x-3.x-dev 6.x-3.x-dev Specified version already installed
Then it tells me that no code updates are available. This is the case with other modules too, this is just the example I chose. Is there any way to force drush to update the code even though the version is still the same?
Comments
Comment #1
frankcarey commentedsame issue: cvs_deploy and update_module have the date information, and suggest even dev updates based on new dev snapshots. Is there any fundamental limitation to be able to do this in drush?
Comment #2
Shai commentedI'm new to Drush, so I can't answer regarding what Drush is supposed to do.
However, a very fast workaround for the problem would be to delete the module and then download it.
Shai
Comment #3
hadsie commentedDeleting the module folder and re-downloading with drush isn't really an option for me as all my code is stored in subversion. So deleting the module directory would also delete my subversion files. Basically leaves me in the same place where I need to manually move the .svn files over and any patches I've applied to the module, which is what I'm doing now.
Comment #4
brad.bulger commentedas a workaround, you can explicitly download the version - drush dl image_fupload-6.x-3.x-dev - and you should get the current release. i've also got the modules in Subversion and do this all the time. plus you should then be able to use svn diff to confirm that in fact you have new code.
Comment #5
hadsie commentedthanks brad. I was using the update command previously, and dl does indeed update the existing code as well.
Comment #6
frankcarey commentedthis is really more of a workaround than a final solution, marking as active.
Comment #7
fletchgqc commentedI think this is a duplicate of #346183: pm update to specific version fails with dev?
Comment #8
geerlingguy commentedDoesn't seem to be a duplicate.
This issue has to do specifically with -dev releases, which are not updated if you use the 'drush up' command, even if a newer -dev release is encountered. I think it would be much more convenient if drush would update a dev release if you explicitly identified the release in the up command, like so:
drush up backup_migrate-6.x-2.x-devComment #9
greg.1.anderson commentedI think that
drush dl backup_migrae-6.x-2.x-devdoes what you suggest.Comment #10
geerlingguy commentedTrue... but then I still have to manually do a
drush updatedbafterwards... I think it would be more intuitive to allow users to do an explicit 'up' to get the latest dev release...Comment #11
greg.1.anderson commentedWell, until it does, you've got a reasonable workaround...
Comment #12
jonhattanIt is already fixed. Now there's a date based check.