Skip to content

Composer compatibility macOS legs fail in setup-php on main #1210

Description

All three macOS legs of Composer patch compatibility (native-macos) are failing on main in shivammathur/setup-php 2.37.2 (f3e473d1). PHP 8.1, 8.3 and 8.4 are all affected.

The Homebrew install runs for about 3.5 minutes and then fails:

==> Setup PHP
sed: : No such file or directory
grep: : No such file or directory
.../setup-php/f3e473d.../src/scripts/unix.sh: line 266: php: command not found
.../unix.sh: line 261: php_config: parameter null or not set
cp: /php.ini: No such file or directory
✗ PHP Could not setup PHP 8.4

This is the same failure mode as the 2026-10-07 23:51Z PHP 8.5 breakage noted in the workflow, but it now covers every version. It is likely a change in the shivammathur/php Homebrew tap that 2.37.2 can't handle.

Impact: red on main push only. The native-macos job is skipped on PRs, Composer compatibility doesn't run in merge_group, and the composer e2e legs in ci.yml are Ubuntu-only. So merging is not blocked. Ubuntu and Windows legs are green.

Next step: check whether a newer setup-php release fixes the macOS Homebrew path. If one does, pin it (by SHA) in both composer-compatibility.yml and ci.yml. Otherwise, consider installing PHP on macOS through a pinned alternative. Don't drop the macOS coverage.


Generated by Claude Code

Activity

  1. mikolalysenko commented on Oct 9, 2026

    @mikolalysenko
    CollaboratorAuthor

    Fix is in #1215. It bumps setup-php from 2.37.2 to 2.40.0, pinned by SHA, in composer-compatibility.yml and ci.yml. 2.40.0 resolves the shivammathur/php tap formula aliases before calling brew. I dispatched the workflow on that branch, and all three macOS legs (PHP 8.1, 8.3, 8.4) passed: run 37876004164.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions