Posted by omahm on December 2, 2011 at 3:03pm
Has anyone tried to pull a .make file as an include in another make file from a private git repo?
Tried pulling in via https but there is no way to authenticate resulting in the download of the login page.
Example:
projects[] = drupal
; INCLUDES
includes[da_news] = "git repo/da_news.make.inc"

Comments
SSH Key
If the user running Drush Make can authenticate over SSH using a key, then it should work
Na, I've my key on the server
Na, I've my key on the server but it won't pull it down as you can only use http.
You can't for example use the projects[type] = "git" syntax to pull down a repo with a make file.
Something like the config below would be sweet
includes[pcore_wysiwyg][download][type] = "git"
includes[pcore_wysiwyg][download][url] = "git@codebasehq.com:pha/pcore/pcore_wysiwyg.git"
includes[pcore_wysiwyg][download][branch] = "master"
includes[pcore_wysiwyg][download][file] = "pcore_wysiwyg.make.inc"
Docs
The Docs say you can...
http://drupalcode.org/project/drush_make.git/blob_plain/refs/heads/6.x-2...
you could add --verbose to see why it is failing.
Aye, but that's just for
Aye, but that's just for projects[]
What I'm looking is to pull in a .make file using the includes[] directive and execute it.
The purpose is that I have a few generic features added to a base .make file (wysiwyg, toolbars, UI) and these use other non-drupal libraries. Though it would be neat to pull these in via a recursive .make file and it would work if I had public http access to the repo, but that isn't an option. Can still roll them as features, just means I have to either download and install or bundle the libraries with the feature.
I remembered I'd seen
I remembered I'd seen something like this before. One of the Aegir talks at DrupalCon touched on it.
Have a look at this - http://mig5.net/comment/749
Might help, I haven't tested it or read it thoroughly, but they are using a make file within their profile and it turns out that Drush Make recursively executes makefiles when it finds them in a profile.
Not sure if that is useful to you or not?
Interesting, didn't know a
Interesting,
didn't know a profile could have a make file and that drush would parse this automagically.
Doesn't solve all the issues but I've now got a nice make stub calling an install profile which calls a make file.
Just in case anyone is still
Just in case anyone is still looking for this, including a .make from a private repo can be done: make the reference to it like it's a module. For example,
projects[modules][type] = modulesprojects[modules][download][type] = git
projects[modules][download][url] = git@bitbucket.org:company/repo.git
projects[modules][download][branch] = master
works, on a repo that contains
modules.make, and will output everything to /sites/all.If your private repo i on
If your private repo i on github, you can use token authentiation to do this, as per http://www.systemseed.com/blog/drush-make-private-git-repository-github
--
Tom
www.systemseed.com - drupal development. drupal training. drupal support.
Excellent, cheers. will
Excellent, cheers. will definitely check this out.