Pull drush make includes from a private repo

Events happening in the community are now at Drupal community events on www.drupal.org.
omahm's picture

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

alanburke's picture

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

omahm's picture

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

alanburke's picture

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

omahm's picture

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

Chris Graham's picture

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

omahm's picture

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

superjerms's picture

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] = modules
projects[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

mrfelton's picture

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

omahm's picture

Excellent, cheers. will definitely check this out.

Ireland

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: