-
Notifications
You must be signed in to change notification settings - Fork 28
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 install fails on hhvm #1610
Comments
I am updating the composer. The before step to install is |
can you try |
Still fails with before_install |
@mseshachalam I took a deeper look at this and found a bug in how we're initializing our hhvm environment. The problem is that all PHP builds are run using phpenv to switch versions, but hhvm doesn't initialize phpenv. As a result, on hhvm builds composer is installed as a system package and needs to be updated with We will address this initialization bug very soon. In the mean time, you should be able to use this workaround to get all your builds running on Shippable:
You can remove all your other |
@rageshkrishna i removed all other composer self-update lines from yml and used the given in before_install. It fails in hhvm. |
@mseshachalam I'm very sorry. The command I specified above has a syntax error and wasn't upgrading composer correctly. Because of the error, the command was running without sudo. Your build output has the following syntax error from bash:
Please use the following instead:
The only difference is that I fixed the equality check from |
Thank you @rageshkrishna It works now. |
@mseshachalam I'm not a PHP expert so I'm not sure how to repro that error, but we do have a default ini file at
|
Thank you @rageshkrishna, Anyway I don't need hhvm. Thank you for the care. |
composer self-update
Updating to version 943107cfe717a74aa791f57b87fa514c88582b0d.
Downloading: connection...������������������������������ Downloading: 100% ���������
Use composer self-update --rollback to return to version ffffab37a294f3383c812d0329623f0a4ba45387
composer install --prefer-dist --no-interaction
Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
[UnexpectedValueException]
Could not parse version constraint ^1.0.0: Invalid version string "^1.0.0"
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [--ignore-platform-reqs] [packages1] ... [packagesN]
The text was updated successfully, but these errors were encountered: