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

Infection no longer works via a composer global install? #1148

Closed
maks-rafalko opened this issue Mar 10, 2020 · 2 comments · Fixed by #1151
Closed

Infection no longer works via a composer global install? #1148

maks-rafalko opened this issue Mar 10, 2020 · 2 comments · Fixed by #1151

Comments

@maks-rafalko
Copy link
Member

maks-rafalko commented Mar 10, 2020

Looks like maybe infection no longer works via a composer global install? https://app.circleci.com/pipelines/github/bdsl/psalm/218/workflows/5dfa1e19-20de-492c-9a58-95c9a03f61f9/jobs/934

#!/bin/bash -eo pipefail
php -d memory_limit=4G ~/.composer/vendor/bin/infection --coverage=build/phpunit --only-covered --threads=2 || echo 'Temporarily ignoring unexplained infection failure'


Fatal error: Uncaught OutOfBoundsException: Required package "infection/infection" is not installed: check your ./vendor/composer/installed.json and/or ./composer.lock files in /home/docker/project/vendor/ocramius/package-versions/src/PackageVersions/Versions.php:89
Stack trace:
#0 /home/docker/.composer/vendor/infection/infection/src/Console/Application.php(81): PackageVersions\Versions::getVersion('infection/infec...')
#1 /home/docker/.composer/vendor/infection/infection/bin/infection(83): Infection\Console\Application->__construct(Object(Infection\Container))
#2 {main}
  thrown in /home/docker/project/vendor/ocramius/package-versions/src/PackageVersions/Versions.php on line 89
Temporarily ignoring unexplained infection failure

CircleCI received exit code 0

Originally posted by @bdsl in #705 (comment)


Possibly related to #876

@sanmai
Copy link
Member

sanmai commented Mar 10, 2020

Note the Infection is thrown by ...project/vendor/ocramius/package-versions... which is not globally-installed package. I find myself thinking it is either a bug in ocramius/package-versions, or it's us not handling this exception.

@sanmai
Copy link
Member

sanmai commented Mar 10, 2020

@bdsl can you see if you still have the issue with the latest ocramius/package-versions?

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

Successfully merging a pull request may close this issue.

2 participants