Skip to content

Conversation

@dj-rabel
Copy link
Contributor

The changes introduced in #12499 caused the path resolution to fail, giving the following error when trying to execute any of the vendor/bin files in composer 2.9.

image

The issue it that some lines further down, the class variable $realpath is actually used and now missing:
image

closes #12600

@Seldaek Seldaek merged commit 5ad6a46 into composer:main Nov 13, 2025
21 checks passed
@Seldaek
Copy link
Member

Seldaek commented Nov 13, 2025

Oh man.. That's a nasty one, sorry I missed it. Thanks for the fix

@Seldaek Seldaek added this to the 2.9 milestone Nov 13, 2025
@staabm
Copy link
Contributor

staabm commented Nov 13, 2025

maybe we can somehow execute this code and run PHPStan on a resulting file, to make sure we catch issues in CI?

@Seldaek
Copy link
Member

Seldaek commented Nov 13, 2025

This is tricky because it's only PHP <8, it was just bad luck / sloppy review on my end IMO.. Not sure it's worth the effort of having PHPStan run on the output here.

https://github.com/composer/composer/releases/tag/2.9.1 is available now.

@jrfnl
Copy link
Contributor

jrfnl commented Nov 13, 2025

maybe we can somehow execute this code ... to make sure we catch issues in CI?

BashUnit might be able to help with that ?

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.

Composer 2.9 Broken GitHub Actions CI

4 participants