Closed (works as designed)
Project:
Drush
Version:
7.x-5.4
Component:
Make
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
7 Jul 2012 at 03:30 UTC
Updated:
7 Jul 2012 at 19:40 UTC
Composer is memory intensive sometimes, so when the composer module runs as a download hook, it was running out of memory. Not a drush problem, and fixed by overriding the memory_limit for a specific command:
php --define memory_limit=-1 /usr/share/php/drush/drush.php dl gelf
But when I try to override the memory_limit for make, it seems that I can't override it. I imagine it's using shell_exec and starting a new subprocess where the --define flag isn't respected, but I'm not sure where to start looking for a solution.
Yeah, I could mess with php.ini, but I'd rather a more sustainable solution if possible :)
# Install RVM
curl -L get.rvm.io | bash -s 1.14.1
exec $SHELL
rvm reload
# Spin up development VM
git clone --branch release/1.0.0 https://github.com/myplanetdigital/ariadne.git /tmp/ariadne-drush-issue
cd /tmp/ariadne-drush-issue
rake setup
vagrant up
# Configure VM
vagrant ssh
cd /vagrant/data/html/example
drush dl composer
drush dl gelf #FAIL
php --define memory_limit=-1 /usr/share/php/drush/drush.php dl gelf #WIN
# The following fails...
php --define memory_limit=-1 /usr/share/php/drush/drush.php make php://stdin /tmp/gelf-test << EOH
core = 7.x
api = 2
projects[drupal][version] = 7.14
projects[gelf][version] = 1.x-dev
EOH
cd /tmp/ariadne-drush-issue
vagrant destroy --force
Comments
Comment #0.0
patcon commentedclarifying comments in code block
Comment #1
moshe weitzman commentedWe support a drush.ini file that overrides pho.ini entries even on sub process. See 'drush topic' item.
Comment #2
patcon commentedSahweet.. thanks moshe!
Comment #3
patcon commentedComment #3.0
patcon commentedcode block: `drush dl gelf` should run in docroot so that site bootstrapped