The panopoly_wysiwig.make file downloads a tarball based on the master branch of markitup version 1.x:
libraries[markitup][download][url] = https://github.com/markitup/1.x/tarball/master
It should download a tag or commit hash instead. Otherwise, the results of running the makefile may change even when the makefile itself has not changed.
Comments
Comment #1
dsnopekI concur! Can you make a URL that will download a tarball of the currently latest commit?
Depending on what the URL ends up being, we may need to update the packaging whitelist entry for markitup:
https://www.drupal.org/node/1509888
(As a security team member, this is something I can do once we know the URL)
Comment #2
cboyden commentedHere's a link to download a .zip file based on the latest commit:
https://github.com/markitup/1.x/archive/c14c2a371836385eed4f500d5513c1a6...
Can a makefile clone a specific revision of a library from Github? If so, the recipe might look like this:
Comment #3
fastangel commentedI created a patch with the last commit instead use only the branch. Other solution is use http://markitup.jaysalvat.com//downloads/download.php?id=releases/latest that is the url to download the last release.
Comment #4
dsnopek@fastangel: Thanks for the patch!
This doesn't look quite right - it definitely shouldn't be "projects[markitup]" but "libraries[markitup]".
Also, Drush doesn't know where to download libraries from, so we probably have to specify the URL to the Git repo.
I think this needs to be closer to what cboyden suggested in #2, but I haven't actually tried that.
Comment #5
fastangel commentedohh yes sorry I attach the right patch.
Comment #6
dsnopekThanks! I tested it and that works with
drush make, but I think that the URL needs to be changed to match the Drupal.org whitelist entry.From:
To (adding ".git" on the end):
Here is cool drush extension that will automatically test this for you:
https://www.drupal.org/project/drupalorg_drush
After installing, you should be able to run
drush verify-makefile panopoly_wysiwyg.makeand it'll tell you if all the entries match the whitelist or not.Comment #7
fastangel commentedThank you dsnopek I didn't know the extension :) thanks for the help.
Comment #9
dsnopekThanks! Committed. :-)