Closed (fixed)
Project:
Drupal.org drush
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
8 Feb 2012 at 05:46 UTC
Updated:
4 Jan 2014 at 01:39 UTC
Jump to comment: Most recent, Most recent file
I think this is "can't fix" but wanted to log it as yet another one of those things I'm hitting on Every. Single. Make file.
Everyone is either doing this:
projects[ajax_load][download][type] = "git"
projects[ajax_load][download][url] = "http://git.drupal.org/project/ajax_load.git"
projects[ajax_load][download][revision] = "8b0921252fcf599e7b15276bd815bcf81521eb27"
projects[ajax_load][subdir] = "contrib"
Or this:
projects[context_field][download][type] = git
projects[context_field][download][branch] = 7.x-1.x
Nowhere, ever, is there a 'version' string specified.
Is it possible to make drupalorg_drush oldened and wizened and avoid Every. Single. Distro. Author. having to update their make files?
| Comment | File | Size | Author |
|---|---|---|---|
| #13 | 1432312-13.set-project-version-via-git-label.patch | 1.63 KB | dww |
Comments
Comment #1
webchicktagging
Comment #2
webchickMoving to a task from a feature request. This is a major DX headache because drush generate-makefile files will fail every time.
Comment #3
langworthy commentedIf a revision, tag, or branch is specified in the make file the module version information is redundant.
This is how I've been structuring make files for some time now:
Comment #4
langworthy commentedSee the drush_make Git test.
Comment #5
webchickSmall tweak. Thanks for making this title make more sense. :D
Comment #6
langworthy commentedI kept the title generic as make files can make use of drush_make's support of cvs, svn, git, and bzr.
Also, I just noticed #1371306: Add validation to ensure that if a .make file includes a git hash, it also defines a branch which complicates things.
Comment #7
dwwYes, you absolutely must specify a version if you only specify a revision. But yes, we could figure out the version if you define 'branch' or 'tag'.
Comment #8
dwwBetter title again. ;)
Comment #9
langworthy commented#7. Why must you specify a version if you only specify a revision?
Comment #10
dww@langworthy: please read the other issue.
Comment #11
jhedstromWe need version set so that the .info file can be modified automatically? If that's the case, then this issue belongs here. Otherwise, I think it is a drupalorg_drush issue, since as that code currently works, it requires a version if a git hash is specified in order to pass validation.
Comment #12
dwwI believe we need version set so that we can find the right release in the release history XML so we can find the right release node ID. If we have a valid branch or tag, we get the .info file rewriting correct already.
Comment #13
dwwYeah, upon further testing, what I said in #12 is true. We need the project-level version to find the right release history, which we use for the release node id stuff.
Comment #14
dwwCommitted and pushed.