Fix PSR Logger compatibility and CI build issues with Google Cloud packages#750
Fix PSR Logger compatibility and CI build issues with Google Cloud packages#750
Conversation
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
pylipp
left a comment
There was a problem hiding this comment.
the first commit you did already looked good, and the build worked.
With the second commit we get the following error in CI:
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Your lock file does not contain a compatible set of packages. Please run composer update.
Problem 1
- sendgrid/sendgrid is locked to version 8.1.11 and an update of this package was not requested.
- sendgrid/sendgrid 8.1.11 requires ext-gmp * -> it is missing from your system. Install or enable PHP's gmp extension.
Problem 2
- starkbank/ecdsa is locked to version 2.1.0 and an update of this package was not requested.
- starkbank/ecdsa 2.1.0 requires ext-gmp * -> it is missing from your system. Install or enable PHP's gmp extension.
Problem 3
- sebastian/diff is locked to version 7.0.0 and an update of this package was not requested.
- sebastian/diff 7.0.0 requires php >=8.3 -> your php version (8.2.28) does not satisfy that requirement.
Problem 4
- friendsofphp/php-cs-fixer is locked to version v3.87.1 and an update of this package was not requested.
- friendsofphp/php-cs-fixer v3.87.1 requires sebastian/diff ^4.0.6 || ^5.1.1 || ^6.0.2 || ^7.0 -> satisfiable by sebastian/diff[7.0.0].
- sebastian/diff 7.0.0 requires php >=8.3 -> your php version (8.2.28) does not satisfy that requirement.
it comes from the command composer install -n. Fix it @copilot
Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
... Fixed the CI build issue by pinning dependency versions for PHP 8.2 compatibility. The problem was that the second commit generated a new composer.lock with incompatible dependencies:
I've pinned these to their working versions and removed the problematic composer.lock file. The dependency resolution now works with PHP 8.2 and without ext-gmp. Commit: 37a412c |
…lity Co-authored-by: pylipp <10617122+pylipp@users.noreply.github.com>
Fixed by generating a new composer.lock with the pinned dependency versions. The lock file now contains compatible versions:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
The CI build issues are now resolved. The composer.lock file contains dependency versions that are compatible with PHP 8.2 and don't require the ext-gmp extension.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.