In case it might help others, I wanted to share a drush make file I used to set up a site specifically to run Coder Upgrade from. It includes the dependencies for Coder Upgrade, plus the Devel module.

As it currently stands, it will download the latest recommended release version of all the modules, with the exception of the Libraries API module. Instead of the 1.0 version of the Libraries API, which is currently the recommended release, Coder Upgrade requires the Libraries API 2.x branch, so the make file specifies that version instead.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

laceysanderson’s picture

I used this to install the coder upgrade module on my D7 site. It worked beautifully :)

solotandem’s picture

Thanks for the post.

You can shorten the make file by eliminating the lines about the Libraries API project. The make file included with the grammar_parser_lib project will be invoked by drush make to download the other dependencies...Libraries API and the Grammar Parser "library" (as drush make is recursive when it finds another make file).

The make file in the Coder Upgrade module illustrates this. If you have downloaded the Coder project, then you could run the make file in the Coder Upgrade module to grab the dependencies.

You tagged this as a feature request. However, to replace the existing make file in the Upgrade module with your make file seems inappropriate. If someone has to download this project to get that make file, then they don't need a make file that asks to download the Coder project again. If you are trying to build a make file for a site, that seems a bit out of scope for this project. And the selection of projects to include is user-specific.

Matt V.’s picture

Issue summary: View changes
FileSize
1.11 KB

@solotandem,

Thanks for the tip; that worked well. I'm attaching an updated make file.

The make file also works on existing sites, if you use the following syntax:

$ drush make --no-core d7upgrader.make

Matt V.’s picture

When attempting to use the d7upgrader.make_.3.txt version of the make file today, I was getting the following warning, causing the module downloads to fail:

There are no stable releases for project coder.

I'm attaching an updated version of the make file that specifies a version of the Coder module, to work around the issue.

klausi’s picture

Status: Needs review » Closed (won't fix)

Coder 7.x-1.x is frozen now and will not receive any updates. Coder 8.x-2.x can be used to check code for any Drupal version, Coder 8.x-2.x also supports the phpcbf command to automatically fix conding standard errors. Please check if this issue is still relevant and reopen against that version if necessary.