Can anyone point me how to use commerce_kickstart profile in a drush make file? I cant find any documentation explaining it and my usual way of using a profile in a make file fails. Here is what I tried.

; Core version
; ------------
core = 7.x

; API version of this Drush Make file
; -----------------------------------
api = 2
;
projects[drupal] = 7.14

projects[commerce_kickstart][type] = "profile"
projects[commerce_kickstart][download][type] = "get"
projects[commerce_kickstart][download][url] = "http://ftp.drupal.org/files/projects/commerce_kickstart-7.x-2.0-alpha2-no-core.tar.gz"

When I tried this make file, drush tries to patch the modules with the patch files available in the download and fails. Most probably the download from d.o is already patched and that patching the already patched file fails. But I am not sure.

I tried with changing the download type to git in the make file. Still the same.

What I need is a simple make file that contains the drupal commerce kickstart profile and a couple of other modules that I will mention in the make file. Is it doable?

Comments

guguss’s picture

Hi, I'm not sure what you're trying to do !

Commerce Kickstart is shipped with its own make file : build-commerce-kickstart.make.
You can build the make using the build.sh script in the scripts folder.

Hope this help !

bojanz’s picture

Status: Active » Fixed

Kickstart v2 uses the slightly more complicated drupal.org standard for packaging distributions.

You can create your own make file and include ours using includes[].
See relevant issue for supporting that on d.o: #1427752: Support drush make includes[] in drupal-org.make files.

krishworks’s picture

Status: Fixed » Needs work

Hi GuGuss and bojanz. Thank you for your support.

@bojanz
I think I followed your instruction properly. Pls correct if I am wrong. My .make file looks like this:

api = 2
core = 7.x
projects[drupal] = 7

includes[] = 'http://drupalcode.org/project/commerce_kickstart.git/blob_plain/refs/tags/7.x-2.0-alpha3:/build-commerce-kickstart.make'

and I get this error

user1@server:~/static$ drush make test.make test
Include file missing: drupal-org-core.make                                                                    [error]
Project information for commerce_kickstart retrieved.                                                         [ok]
Unable to determine project type for commerce_kickstart.                                                      [error]
Non-existent project type  on project drupal                                                                  [error]
Project information for drupal retrieved.                                                                     [ok]
drupal downloaded from http://ftp.drupal.org/files/projects/drupal-7.15.tar.gz.                               [ok]
PHP Fatal error:  Call to a member function make() on a non-object in /data/disk/user1/.drush/drush_make/drush_make.drush.inc on line 233

Fatal error: Call to a member function make() on a non-object in /data/disk/user1/.drush/drush_make/drush_make.drush.inc on line 233
Drush command terminated abnormally due to an unrecoverable error.                                            [error]
Error: Call to a member function make() on a non-object in
/data/disk/user1/.drush/drush_make/drush_make.drush.inc, line 233
mojzis’s picture

i just managed by doing this :

  wget http://drupalcode.org/project/commerce_kickstart.git/blob_plain/refs/heads/7.x-2.x:/build-commerce-kickstart.make  
  vim build-commerce-kickstart.make

edit the line with includes[] = drupal-org-core.make - add complete adress os it looks like this :

  includes[] = http://drupalcode.org/project/commerce_kickstart.git/blob_plain/refs/heads/7.x-2.x:/drupal-org-core.make

and then just

  drush make --prepare-install build-commerce-kickstart.make

the local one ! and you can watch it coming :)

good luck.

mojzis’s picture

the steps above dont work anymore.
some promise has been done here : #1749990: Support for Aegir installs directly from the web interface - if it works for aegir, it should work for git as well.

lsolesen’s picture

Issue summary: View changes
Status: Needs work » Fixed

@mojzis. Clone commerce kickstart, and the just run:

drush make --prepare-install build-commerce-kickstart.make ../mykickstartdistro

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.