Closed sebastianbergmann closed 1 day ago
@localheinz Can you help me? Thanks!
I just ran into this issue on the 10.1
branch after bumping the dependencies: https://github.com/sebastianbergmann/php-code-coverage/actions/runs/9903217535
Taking another 👀, @sebastianbergmann!
Thank you, @localheinz!
Before c00148658dc981cc32ae6af1f861f6aee857fc1f, the
composer.json
file of this project configured a dependency on"phpunit/phpunit": "^9.3"
.I noticed that on GitHub Actions, Composer would install PHPUnit 9.4.4 instead of PHPUnit 9.6.19 (which is the latest version that fulfills the
^9.3
version constraint. See https://github.com/sebastianbergmann/php-code-coverage/actions/runs/9722443548/job/26836345492#step:6:27.I changed this version constraint from
^9.3
to^9.6
in c00148658dc981cc32ae6af1f861f6aee857fc1f in order to force an error on GitHub Actions when Composer installs the dependencies and provides an error message that explains why PHPUnit 9.4.4 was installed before:COMPOSER_ROOT_VERSION
is set to9.2-dev
in the GitHub Actions configuration and abranch-alias
is configured incomposer.json
.This problem does not exist on the
10.1
andmain
branches, but I fail to see a difference between the branches where this works and the9.2
branch where it does not work.