Fix composer update via HHVM#150
Conversation
|
Shouldn't |
There was a problem hiding this comment.
oups, i'm gonna fix it :)
|
@apfelbox fixed, thanks :) |
|
👍 It's a nice fix, i need it ! |
There was a problem hiding this comment.
The problem is that you might still need to escape the PHP path. That's a tricky issue as you cannot make a difference between what should be esacped and what should not.
I think the problem is more in PhpExecutableFinder where we can return some options like --php.
|
@fabpot my last commit will fix the problem once symfony/symfony#11497 merged |
There was a problem hiding this comment.
typo here. Your $ key is too sensitive :)
There was a problem hiding this comment.
should be $phpFinder = new PhpExecutableFinder();
There was a problem hiding this comment.
It's not mandatory and not used in the coding style of the file (c.f getPhp function)
There was a problem hiding this comment.
@xabbuh is right. We are using () everywhere... well except here apprentely ;)
|
Thanks @JJK801 ! |
There was a problem hiding this comment.
If you get more than one argument, it won't work. So, this method should return an array instead (see my comment on the PR on symfony/symfony).
|
any word when this will be merged and tagged? its preventing us from testing against HHVM with the CMF |
|
symfony/symfony#11497 should be merged first, but we are almost there. |
There was a problem hiding this comment.
this should be guarded with a method_exists check to avoid fatal errors if an older version of Symfony is used (returning an empty array when the method does not eixsts)
Hi, When i try to update my dependencies using hhvm (hhvm /usr/local/bin/composer update), i get an error from your script: sh: 1: /usr/bin/hhvm --php: not found This is because the --php argument is escaped with the command, this PR fix it (maybe a better way, but i got no time to pend on it) Thx
…ments (JJK801) This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #11497). Discussion ---------- Use separated function to resolve command and related arguments Hi, This PR split command and related arguments resolution into two distinct functions. It will help to solve the HHVM issue sensiolabs/SensioDistributionBundle#150 . Thanks, Jérémy | Q | A | ------------- | --- | Bug fix? | yes | New feature? | yes | BC breaks? | yes | Deprecations? | no | Tests pass? | yes | Fixed tickets | ~ | License | MIT | Doc PR | ~ Commits ------- ee75af0 Use separated function to resolve command and related arguments
|
👍 |
|
Thank you @JJK801. |
This PR was squashed before being merged into the 3.0.x-dev branch (closes #150). Discussion ---------- Fix composer update via HHVM Hi, When i try to update my dependencies using hhvm (hhvm /usr/local/bin/composer update), i get an error from your script: sh: 1: /usr/bin/hhvm --php: not found This is because the --php argument is escaped with the command, this PR fix it (maybe a better way, but i got no time to pend on it) Thx Commits ------- b901596 Fix composer update via HHVM
|
@fabpot my pleasure |
|
Will it be fixed for 2.3.x too? |
|
I'm still having the issue with |
|
I have updated my composer json to use the dev-master build of the SensioDistributionBundle. My composer.lock confirms I am using the latest commit: "name": "sensio/distribution-bundle",
"version": "dev-master",
"target-dir": "Sensio/Bundle/DistributionBundle",
"source": {
"type": "git",
"url": "https://github.com/sensiolabs/SensioDistributionBundle.git",
"reference": "e20461e4f8e1afd68f36cf90bdccc06f7aa6a6c2"running: composer update Am i missing something or did this PR not fix the issue? |
|
@chasen I'm having the same issue, have a look on my previous comment. As workaround I'm using composer with |
|
My Solution: Replace all with in your |
|
@sroze @chasen @FlorianKoerner Which version of SensioDistributionBundle are you using ? this PR is only merged for 3.0.6 tag for now |
3.0.6 is incompatible with Symfony 2.3.x - so I can not use your solution. |
|
@sroze @FlorianKoerner @chasen as @sroze said, it seems to be a composer issue (pointing to symfony/process 2.5.4 but PR was tagged in 2.5.5), i'm gonna make a PR to fix it. |
|
@sroze @chasen the composer PR composer/composer#3318 fix the problem. @FlorianKoerner about the 2.3.x merge, i'm not maintainer of this projet, ask @fabpot about it or just update your symfony. |
|
see #168 for the Symfony 2.3 support |
|
Confirming that the composer self-update fixed this issue with the above changes, awesome thanks. |
|
thanks for the feedback @joshuataylor |
|
A workaround in case updating is not an option: composer/composer#3172 |
Hi,
When i try to update my dependencies using hhvm (hhvm /usr/local/bin/composer update), i get an error from your script:
sh: 1: /usr/bin/hhvm --php: not found
This is because the --php argument is escaped with the command, this PR fix it (maybe a better way, but i got no time to pend on it)
Thx