I'm not sure if this is a bug, but it's certainly unexpected behavior. Today I was playing with Drush Make, trying to create a make file that downloads an existing installation profile together with a couple of other modules. The make file looked like this:

core = 7.x
api = 2

; Drupal core
projects[drupal][version] = "7.14"

; Localization Install profile
projects[l10n_install][type] = "profile"
projects[l10n_install][download][type] = "git"
projects[l10n_install][download][url] = "git://git.drupal.org/project/openatrium.git"
projects[l10n_install][download][tag] = "7.x-1.0-beta15"

; Modules
projects[admin_menu][subdir] = "contrib"
projects[admin_menu][version] = "3.0-rc2"

projects[devel][subdir] = "contrib"
projects[devel][version] = "1.2"

I wasn't sure yet if the lines regarding the l10n_install were correct, but I didn't expect the following result:

marc@marc-laptop:~/sandbox$ drush make ../drush-make/marc-l10n.make test
drupal-7.14 downloaded.                                                                                         [ok]
 >> Project admin_menu contains 3 modules: admin_devel, admin_menu_toolbar, admin_menu.
 >> admin_menu-7.x-3.0-rc2 downloaded.                                                                          [ok]
 >> Project devel contains 3 modules: devel_generate, devel_node_access, devel.
 >> devel-7.x-1.2 downloaded.                                                                                   [ok]
 >> l10n_install cloned from git://git.drupal.org/project/openatrium.git.                                       [ok]
 >> Unable to check out tag 7.x-1.0-beta15.                                                                     [error]
 >> Found makefile: drupal-org.make                                                                             [ok]
 >> tao-6.x-3.3 downloaded.                                                                                     [ok]
 >> l10n_update-6.x-1.0-beta3 downloaded.                                                                       [ok]
 >> ginkgo-6.x-1.1 downloaded.                                                                                  [ok]
 >>  >> Project rubik contains 2 themes: cube, rubik.
 >> rubik-6.x-3.0-beta3 downloaded.                                                                             [ok]
 >> l10n_client-6.x-2.0 downloaded.                                                                             [ok]
 >>  >> Project atrium_features contains 13 modules: atrium_test, atrium_translate, atrium_activity, atrium, atrium_blog, atrium_calendar, atrium_book, atrium_members, atrium_shoutbox, atrium_reader, atrium_groups, atrium_casetracker, atrium_profile.
 >> atrium_features-6.x-1.2 downloaded.                                                                         [ok]
 >> simpletest-6.x-2.11 downloaded.                                                                             [ok]
 >> schema-6.x-1.7 downloaded.                                                                                  [ok]
 >>  >> Project devel contains 3 modules: devel_generate, devel_node_access, devel.
 >> devel-6.x-1.26 downloaded.                                                                                  [ok]
 >> coder-6.x-2.0-rc1 downloaded.                                                                               [ok]
 >> xref-6.x-1.0 downloaded.                                                                                    [ok]
 >>  >> Project ucreate contains 2 modules: ucreate, ucreate_og.
 >> ucreate-6.x-1.0-beta4 downloaded.                                                                           [ok]
 >>  >> Project token contains 3 modules: token_actions, token, tokenSTARTER.
 >> token-6.x-1.18 downloaded.                                                                                  [ok]
 >> transliteration-6.x-3.0 downloaded.                                                                         [ok]
 >> >> Project views contains 3 modules: views_export, views_ui, views.
 >> views-6.x-2.16 downloaded.                                                                                  [ok]
 >> strongarm-6.x-2.1 downloaded.                                                                               [ok]
 >> views patched with views-static-cache-resets-694094-7.patch.                                                [ok]
 >> reldate-6.x-1.0-beta2 downloaded.                                                                           [ok]
 >>  >> Project spaces contains 7 modules: spaces_taxonomy, spaces_og, spaces_customtext, spaces_user, spaces_ui, spaces_dashboard, spaces.
 >> spaces-6.x-3.4 downloaded.                                                                                  [ok]
 >> views patched with views2_simple_translatables.patch.                                                       [ok]
 >> views patched with 789674-29-vocabulary_module-6.x-2.x.patch.                                               [ok]
 >> purl-6.x-1.0-beta13 downloaded.                                                                             [ok]
 >> views patched with views-2.16-1040744.patch.                                                                [ok]
 >> Generated PATCHES.txt file for views                                                                        [ok]
 >> prepopulate-6.x-2.2 downloaded.                                                                             [ok]
 >> parser_ical-6.x-2.0-beta1 downloaded.                                                                       [ok]
 >> openidadmin-6.x-1.2 downloaded.                                                                             [ok]
 >> >> Project og contains 5 modules: og_access, og_notifications, og_views, og_actions, og.
 >> og-6.x-2.3 downloaded.                                                                                      [ok]
 >> notifications_team-6.x-2.1-beta8 downloaded.                                                                [ok]
 >>  >> Project notifications contains 7 modules: notifications_ui, notifications_lite, notifications_views, notifications_content, notifications_autosubscribe, notifications_tags, notifications.
 >> notifications-6.x-2.3 downloaded.                                                                           [ok]
 >>  >> Project nodeformcols contains 3 modules: nfcbiblio, nodeformcols, nfccaptcha.
 >> nodeformcols-6.x-1.6 downloaded.                                                                            [ok]
 >>  >> Project messaging contains 10 modules: messaging_phpmailer, messaging_mime_mail, messaging_privatemsg, messaging_twitter, messaging_debug, messaging_sms, messaging_xmpp, messaging_mail, messaging_simple, messaging.
 >> messaging-6.x-2.4 downloaded.                                                                               [ok]
 >> markdown-6.x-1.2 downloaded.                                                                                [ok]
 >> mailhandler-6.x-1.11 downloaded.                                                                            [ok]
 >>  >> Project mailcomment contains 2 modules: mailcomment_extras, mailcomment.
 >> mailcomment-6.x-1.0 downloaded.                                                                             [ok]
 >> litecal-6.x-1.0 downloaded.                                                                                 [ok]
 >> libraries-6.x-1.0 downloaded.                                                                               [ok]
 >> jquery_update-6.x-2.0-alpha1 downloaded.                                                                    [ok]
 >> jquery_ui-6.x-1.5 downloaded.                                                                               [ok]
 >> job_scheduler-6.x-1.0-beta3 downloaded.                                                                     [ok]
 >> itweak_upload-6.x-2.5 downloaded.                                                                           [ok]
 >> imagecache_profiles-6.x-1.3 downloaded.                                                                     [ok]
 >>  >> Project imagecache contains 2 modules: imagecache, imagecache_ui.
 >>  >> Project imageapi contains 3 modules: imageapi_imagemagick, imageapi, imageapi_gd.
 >> imagecache-6.x-2.0-beta12 downloaded.                                                                       [ok]
 >> imageapi-6.x-1.10 downloaded.                                                                               [ok]
 >>  >> Project data contains 6 modules: data_ui, data_taxonomy, data_node, data_vbo, data_search, data.
 >> data-6.x-1.1 downloaded.                                                                                    [ok]
 >>  >> Project feeds contains 5 modules: feeds_import, feeds_fast_news, feeds_ui, feeds_news, feeds.
 >> feeds-6.x-1.0-beta11 downloaded.                                                                            [ok]
 >> features-6.x-1.2 downloaded.                                                                                [ok]
 >> diff-6.x-2.3 downloaded.                                                                                    [ok]
 >> designkit-6.x-1.0-beta1 downloaded.                                                                         [ok]
 >> crayon-6.x-1.0-beta3 downloaded.                                                                            [ok]
 >>  >> Project date contains 8 modules: date_tools, date_timezone, date_popup, date, date_repeat, date_php4, date_locale, date_api.
 >> date-6.x-2.8 downloaded.                                                                                    [ok]
 >>  >> Project context contains 3 modules: context_layouts, context_ui, context.
 >> context-6.x-3.0 downloaded.                                                                                 [ok]
 >>  >> Project ctools contains 9 modules: ctools_access_ruleset, ctools_plugin_example, ctools_ajax_sample, views_content, stylizer, ctools_custom_content, page_manager, bulk_export, ctools.
 >> ctools-6.x-1.8 downloaded.                                                                                  [ok]
 >> >> Project content_profile contains 3 modules: content_profile_tokens, content_profile_registration, content_profile.
 >> content_profile-6.x-1.0 downloaded.                                                                         [ok]
 >> comment_upload-6.x-1.0-alpha6 downloaded.                                                                   [ok]
 >> codefilter-6.x-1.0 downloaded.                                                                              [ok]
 >>  >> Project casetracker contains 4 modules: casetracker_actions, casetracker_notifications, casetracker_basic, casetracker.
 >> casetracker-6.x-1.0-beta9 downloaded.                                                                       [ok]
 >>  >> Project cck contains 9 modules: content_permissions, userreference, nodereference, text, number, optionwidgets, content_copy, fieldgroup, content.
 >> boxes-6.x-1.1 downloaded.                                                                                   [ok]
 >> cck-6.x-2.9 downloaded.                                                                                     [ok]
 >> admin-6.x-2.0 downloaded.                                                                                   [ok]
 >> jquery_ui downloaded from http://jquery-ui.googlecode.com/files/jquery-ui-1.7.3.zip.                        [ok]

As you can see, once drush failed to "check out tag 7.x-1.0-beta15", it started to download a large number of D6 projects that seem completely unrelated. Afterwards, the ~/sandbox/test directory that shouls have been created, wasn't there. Is this a bug? If not, at least I'd like to understand what happened!

Comments

joestewart’s picture

This line said to get Open Atrium:

projects[l10n_install][download][url] = "git://git.drupal.org/project/openatrium.git"

jhedstrom’s picture

Category: bug » support
Status: Active » Fixed

Yep, you have the url set for the l10n_install profile pointing at the atrium git repo. Instead, you should be able to trim that down to just

; Localization Install profile
projects[l10n_install][version] = "1.0-beta8"

for the localization profile, and then a separate section for the Atrium profile.

marcvangend’s picture

Ouch, I feel like an idiot. Just pasted in the wrong url... I should go to bed earlier :-)

Jonathan, thanks for the tip about the version number.

marcvangend’s picture

@jhedstrom: just tried out using the [version] property but that doesn't seem to work for an installation profile.

This didn't work:

; Localization Install profile
projects[l10n_install][type] = "profile"
projects[l10n_install][version] = "1.0-beta15"

The site was built, but without the installation profile.

This did work:

; Localization Install profile
projects[l10n_install][type] = "profile"
projects[l10n_install][download][type] = "git"
projects[l10n_install][download][url] = "git://git.drupal.org/project/l10n_install.git"
projects[l10n_install][download][tag] = "7.x-1.0-beta15"

The site was built with the installation profile and the profile's drupal-org.make was run.

Is there documentation available for Drush 5 about the syntax for makefiles?

Status: Fixed » Closed (fixed)

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