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 --no-scripts installs 0.13.4 instead of 0.15.0 #876
Comments
maybe a |
@theofidry i don't have a composer.lock file because i am developing a library, therefore the .lock file is not committed to the git (it makes no sense anyway, because the project using the library will define the final list of dependencies). Then in CI i execute |
Yes, it looks like it's indeed so:
however, infection still identifies itself as 0.13.4 |
We are relying on infection/src/Console/Application.php Line 83 in c2bd612
When I use
I just tried to install
@someniatko I guess you have So, this seems like a bug? @infection/core? |
Catching that I tend to think we can catch that exception, and be done, for now. |
It is, and there's where it throws that |
I think we just need to update to the latest version and everything should work out of the box. Currently, we are on |
@maks-rafalko you cannot, package-versions |
@maks-rafalko btw, i tested on two test projects (just created new folders with composer.json only):
both have the same problem, after |
This is related to #1007 and Ocramius/PackageVersions#116 Shortly: when using There is nothing to do with it in this package, the only workaround is not to rely on PackageVersions to detect this package version. |
Infection is using PHP 7.3 on |
No, package versions lib is not fixed yet
вт, 10 марта 2020 г., 23:49 Maks Rafalko <notifications@github.com>:
… @maks-rafalko <https://github.com/maks-rafalko> you cannot,
package-versions 1.5.x require PHP 7.3
Infection is using PHP 7.3 on master, can we fix this issue with
upgrading ocramius/package-versions?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#876?email_source=notifications&email_token=ABSGB3OKUNDWQAD27LETX7TRG2RUBA5CNFSM4JUU3GB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEONC5VI#issuecomment-597307093>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABSGB3NAGYBY7RD7HWRKVBDRG2RUBANCNFSM4JUU3GBQ>
.
|
Is it still an issur @scaytrase ? We are using |
Sorry, no idea I'm not part of that project anymore to check. This should be fixed since 1.10 using composer 2 api |
… 7.4.0 to 7.4.7 as `package-versions` requires Fixes #876
Had to revert this change since it breaks Phar creation, see #1520 |
infection.phar --version
) but intended is 0.15.0infection/infection
^0.15
to yourcomposer.json
filevendor
folder andcomposer.lock
file for the clean experimentcomposer install --no-scripts
(composer.lock
file will be generated)composer.lock
version is set to correct one (for now it's0.15.0
)vendor/bin/infection --version
.Expected:
Infection - PHP Mutation Testing Framework 0.15.x@<hash>
Actual:
Infection - PHP Mutation Testing Framework 0.13.4@f0f8327f5e60d1a7d8ab4ea01074c6250ab96f57
The text was updated successfully, but these errors were encountered: