Skip to content

Fix autofix Docker build on GitHub runners - #1980

Merged
spawnia merged 2 commits into
masterfrom
fix-autofix-docker-build
Sep 27, 2026
Merged

spawnia merged 2 commits into
masterfrom
fix-autofix-docker-build

Conversation

@spawnia

@spawnia spawnia commented Sep 27, 2026 •

Copy link
Copy Markdown
Collaborator

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.

deb.debian.org still serves the bullseye package lists, but not the security packages

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.

Installing the dependencies in the composer image would avoid apt, but is a bigger change

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.

🤖 Generated with Claude Code

Debian 11 reached end of life and deb.debian.org returns 404 for its security packages.

🤖 Generated with Claude Code
@spawnia
spawnia marked this pull request as ready for review September 27, 2026 10:02
@spawnia
spawnia merged commit e3d0dca into master Sep 27, 2026
22 checks passed
@spawnia
spawnia deleted the fix-autofix-docker-build branch September 27, 2026 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant