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
Phar file not executable from vendor/bin #5447
Comments
We do not distribute PHPUnit's PHAR via Composer, so I am not sure I understand what you are trying to report. PHPUnit's PHAR should not care about where it is located. I am not able to reproduce a problem when it is located in
|
Thanks for your response. |
Can this issue be closed now that composer/composer#11562 has been implemented? |
I was able to get around this issue by executing the Phar directly References: https://github.com/ghostwriter/coding-standard/blob/main/composer.json#L36-L47 |
That’s also my current hack/workaround. |
Composer version |
Thanks for the update and providing the fix. @fredden |
Sorry @sebastianbergmann but it seems like our fix in Composer caused further issues (composer/composer#11615) as the file still shows up in the backtraces but the last entry in the backtrace doesn't match |
I might consider a pull request, but I will not look into this issue myself as installing PHPUnit's PHAR via Composer is not a supported installation method. |
Ok I see.. my bad for trying to make things play nicer together I guess :D Happy to just revert, but I am curious to fully understand the problem first. |
When the
phpunit.phar
is distributed via composer in thevendor/bin
folder then no output is shown.I would prefer to use it that way in my projects as it then has the benefit that I don't have many dev dependencies I would only need for phpunit and I have the benefit of not having to download the phar each time.
In the issue composer/composer#11555 the problem got narrowed down to the following snippet:
phpunit/build/templates/binary-phar-autoload.php.in
Lines 58 to 62 in 15a89f1
After looking into it I saw that it was related to some bugs in the process isolation.
Related issues I found:
As far as I understand v10 was a major rewrite. Is it now possible to support the distribution via a
bin
directory?The text was updated successfully, but these errors were encountered: