Repository navigation
Commit e3d0dca
authored
Fix autofix Docker build on GitHub runners (#1980)
The `autofix` job fails on every PR and on master because apt cannot
install packages in the bullseye images.
Debian 11 reached end of life on 2026-08-31, and its packages are moving
from deb.debian.org to archive.debian.org.
The php-cs-fixer image now installs `git` and `unzip` from
archive.debian.org when the base image is bullseye.
<details>
<summary>deb.debian.org still serves the bullseye package lists, but not
the security packages</summary>
`apt-get update` succeeds, then `apt-get install` fails with `404 Not
Found` for packages in `bullseye-security`.
archive.debian.org serves `bullseye` main, but not `bullseye-security`
yet.
Last passing run:
https://github.com/webonyx/graphql-php/actions/runs/33423045262.
First failing run:
https://github.com/webonyx/graphql-php/actions/runs/34238445855.
Log with the 404s:
https://github.com/webonyx/graphql-php/actions/runs/36310173564.
</details>
<details>
<summary>Installing the dependencies in the composer image would avoid
apt, but is a bigger change</summary>
`composer require` could run in the `composer` stage, which already has
`git` and `unzip`, with `platform.php` set to the target PHP version.
That needs a PHP version build argument in the Makefile.
For a throwaway formatter image, frozen packages without security
updates are acceptable.
</details>
🤖 Generated with Claude Code1 parent c267619 commit e3d0dca
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
5 | 9 | | |
6 | 10 | | |
7 | 11 | | |
| |||
0 commit comments