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.
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.
Comment | File | Size | Author |
---|---|---|---|
#4 | coder_upgrade.make_.example.txt | 1.1 KB | Matt V. |
#3 | d7upgrader.make_.3.txt | 1.11 KB | Matt V. |
d7upgrader.make_.txt | 1.27 KB | Matt V. |
Comments
Comment #1
laceysanderson CreditAttribution: laceysanderson commentedI used this to install the coder upgrade module on my D7 site. It worked beautifully :)
Comment #2
solotandem CreditAttribution: solotandem commentedThanks 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.
Comment #3
Matt V. CreditAttribution: Matt V. commented@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
Comment #4
Matt V. CreditAttribution: Matt V. commentedWhen 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.
Comment #5
klausiCoder 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.