Be specific in your makefile

Created on 26 February 2014, almost 11 years ago
Updated 25 July 2023, over 1 year ago

If you are going to use makefiles and your module releases always require a specific version of the library to work with, you should specify so in your makefile.

For instance 1.9 requires a library version from mid 2013, but the makefile just specifies "whatever commit the master branch is currentlty at". This causes incompatibilities to arise when using drush make to build a site.

Current makefile:

core = 7.x
api = 2

libraries[superfish][directory_name] = superfish
libraries[superfish][download][type] = get
libraries[superfish][download][url] = https://github.com/mehrpadin/Superfish-for-Drupal/zipball/master

Suggested makefile structure from now on (and tested to work for 1.9):

core = 7.x
api = 2

libraries[superfish][download][type] = git
libraries[superfish][download][url] = git@github.com:mehrpadin/Superfish-for-Drupal.git
libraries[superfish][download][revision] = df653d870155c71cdb653c77083c5f39a7600a56
🐛 Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024