Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

composer needs HOME or COMPOSER_HOME to run properly #1

Open
igalic opened this issue Oct 11, 2013 · 6 comments
Open

composer needs HOME or COMPOSER_HOME to run properly #1

igalic opened this issue Oct 11, 2013 · 6 comments
Assignees

Comments

@igalic
Copy link
Contributor

igalic commented Oct 11, 2013

Debug: /Stage[main]/Composer::Project[/srv/web/example.com/www]/Exec[composer_install_/srv/web/example.com/www]/onlyif:   [RuntimeException]
Debug: /Stage[main]/Composer::Project[/srv/web/example.com/www]/Exec[composer_install_/srv/web/example.com/www]/onlyif:   The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
@ghost ghost assigned igalic Oct 11, 2013
@igalic igalic mentioned this issue Jan 24, 2014
@igalic
Copy link
Contributor Author

igalic commented Jan 24, 2014

In theory this should be fixed now. I'll reopen it when it doesn't.

@igalic igalic closed this as completed Jan 24, 2014
@ricco24
Copy link

ricco24 commented Feb 10, 2014

I make composer.phar self-update but still get this err message.

@igalic igalic reopened this Feb 11, 2014
@justicel
Copy link

Same here. Do you need to be setting an environment variable for this when doing the auto update? Seems likely since it can't inherit from the shell.

@igalic
Copy link
Contributor Author

igalic commented Oct 29, 2014

i guess so:

igalic@levix /tmp % env -i sh
$ set
IFS=' 
'
OPTIND='1'
PATH='/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
PPID='13205'
PS1='$ '
PS2='> '
PS4='+ '
PWD='/tmp'
$ env
PWD=/tmp
$ /home/igalic/bin/composer self-update



  [RuntimeException]                                                                        
  The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly  



self-update [-r|--rollback] [--clean-backups] [version]


$ 

@igalic
Copy link
Contributor Author

igalic commented Oct 29, 2014

this may be closely related to #7.

@mbrodala
Copy link
Contributor

This is actually working fine as proven by countless users (including myself) and Travis CI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants