Closed jasonvarga closed 11 months ago
@jasonvarga
Please replace the apt-spy2
step as it breaks package lists. As a result, it is not able to install the required libgd
version from ppa:ondrej/php
.
You can still ensure that your lists are updated and there are no broken packages using apt
.
- name: Update apt sources
if: steps.should-run-tests.outputs.result == 'true' && matrix.os == 'ubuntu-latest'
run: |
sudo apt-get check || sudo apt --fix-broken install -y
sudo apt-get update
I had that line in there as per the recommendation of https://github.com/actions/runner-images/issues/675#issuecomment-1419388451 but apt-get update
is probably enough.
The warnings are now gone, and my tests even pass.
Thanks very much!
Describe the bug
Same as described in https://github.com/shivammathur/setup-php/issues/767, I'm seeing the warning during the setup-php task.
Version
v1
orv2
.v2
v1
Runners
Operating systems
Ubuntu 22.04.3
PHP versions
8.3
To Reproduce
Entire workflow file: https://github.com/statamic/cms/actions/runs/6694693364/workflow?pr=8845 Relevant lines:
Expected behavior
Should install PHP with no warnings.
Screenshots/Logs
Here's the workflow run: https://github.com/statamic/cms/actions/runs/6694693364/job/18195065968?pr=8845 The "Setup PHP" step shows the warnings.
Additional context We have strange test failures on GitHub Actions which we can't recreate locally. I'm trying to rule out a problem with the GitHub PHP installation itself being the issue by getting rid of the warnings.
This warning was already reported and apparently fixed mentioned in https://github.com/shivammathur/setup-php/issues/767
Are you willing to submit a PR?
Unfortunately not, I wouldn't know where to begin.